Trazodone is a prescription medication primarily used to treat major depressive disorder and, in some cases, anxiety disorders. It belongs to a class of drugs known as serotonin modulators, which work by influencing the balance of serotonin in the brain. Trazodone is also commonly prescribed off-label as a sleep aid due to its sedative effects. Common side effects may include drowsiness, dizziness, and dry mouth.