Sertraline, commonly known by the brand name Zoloft, is a selective serotonin reuptake inhibitor (SSRI) primarily used to treat major depressive disorder, anxiety disorders, post-traumatic stress disorder, and obsessive-compulsive disorder. It works by increasing the levels of serotonin, a neurotransmitter that influences mood, in the brain.