We sleep at night because sunlight inhibits melatonin production (the sleep hormone). With less melatonin in the body, we stay active and alter throughout the day. When the sunsets and we are exposed to less light, melatonin production increases, and we become tired and ready for sleep. If we didn't sleep at night, the constant exposure to sunlight would stop melatonin production and make it difficult for us to fall asleep.