1 Antidepressants: Some antidepressant drugs, such as (trazodone (Desyrel) and (mirtazapine (Remeron), are particularly effective in treating sleeplessness and anxiety. 2  Over-the-Counter Sleep Aids: Most of these sleeping pills are antihistamines. 3  They generally work well but can cause some drowsiness the next day.