Some people do take trazodone to sleep. Research has found that this drug may help you stay asleep longer and improve the quality of your rest—especially when taken short-term.