Melatonin is a hormone available in your body that your brain produces in response to darkness. Melatonin helps your body to function according to the time cycle of 24 hours. When a person is too much in light, sleep patterns are disturbed. Therefore, creating a sleep environment, a dark palace, can help to have a sound sleep.