Trazodone is an antidepressant medication. It is used to treat major depressive disorder, anxiety disorders, and difficulties with sleep. The medication is taken orally. Common side-effects include dry mouth, feeling faint, vomiting, and headache.