Sertraline, often known under the brand name Zoloft, is a medicine used to treat depression, anxiety disorders, panic attacks, and obsessive-compulsive disorder (OCD). It is a member of the group of medications called selective serotonin reuptake inhibitors. Sertraline works by raising serotonin levels in the brain, which helps with mood, sleep, appetite, and energy.