Lifestyle changes often can help relieve acute (short-term) insomnia. These changes might make it easier to fall asleep and stay asleep.
A type of counseling called cognitive-behavioral therapy (CBT) can help relieve the anxiety linked to chronic (ongoing) insomnia. Anxiety tends to prolong insomnia.
Several medicines also can help relieve insomnia and re-establish a regular sleep schedule. However, if your insomnia is the symptom or side effect of another problem, it's important to treat the underlying cause (if possible).