Trazodone is an antidepressant medication primarily used to treat major depressive disorder and anxiety disorders. It works by inhibiting the reuptake of serotonin in the brain, which helps improve mood and alleviate anxiety. Trazodone is also commonly prescribed off-label as a sleep aid due to its sedative properties. It is available in various forms, including tablets and extended-release formulations.