The first step would be to rule the causes for insomnia like sleep
disorders. Next it is treated with both medical
and non medical therapy. Medical (sedatives) are given in the temporary initial phase, this is combined with non medical measures like sleep hygiene, relaxation therapy, stimulus control, and sleep restriction which are referred to as cognitive behavioral therapies. As the non medical measures help to restore your sleep rhythm, the sedatives are withdrawn.