When light levels drop in the evening, the pineal gland switches on the production of the sleep-inducing hormone Melatonin. It’s then released through the night, keeping you asleep until the morning, when levels drop again.
The blue light from smartphones and other technology can suppress Melatonin, disrupting your sleep-wake cycle. Turn off two hours before bed and keep your room as dark as possible.