Changing your sleep habits and addressing any underlying causes of insomnia, such as medical conditions or medications, can help you to restore restful sleep. If these measures don't work, your doctor may recommend medications to help with relaxation and sleep.
Behavioural treatments can teach you better sleep behaviours and ways to improve your sleeping environment and encourage sound sleep. This is a first step recommended for treatment. Your doctor will educate you about better sleeping habits, having a regular sleep schedule, avoiding stimulating activities before bed, and having a comfortable sleep environment.
Another option is cognitive behavioural therapy. This helps you to control or eliminate negative thoughts and worries that keep you awake. Relaxation techniques such as muscle relaxation and breathing exercises are ways to reduce anxiety before going to bed. These tricks help you to control your breathing, heart rate, muscle tension and mood.
Remaining passively awake is another treatment, aimed at reducing the worry and anxiety about being able to get to sleep by getting in bed and trying to stay awake rather than expecting to fall asleep. Light therapy also works in some cases. If you fall asleep too early and then awaken too early, you can use light to push back your internal clock.
Other than this, taking prescription sleeping pills may help you get to sleep. Doctors don't recommend relying on prescription sleeping pills for more than a few weeks, but several medications are approved for long-term use.