Your internal 24-hour sleep-wake cycle, otherwise known as your biological clock or circadian rhythm, is regulated by processes in the brain that respond to how long you’ve been awake and the changes between light and dark. At night, your body responds to the loss of daylight by producing melatonin, a hormone that makes you sleepy. During the day, sunlight triggers the brain to inhibit melatonin production so you feel awake and alert.