Zoloft is a medication that contains the active ingredient sertraline. It is also known by its generic name, sertraline, and sometimes referred to as a selective serotonin reuptake inhibitor (SSRI). Zoloft is used to treat depression, anxiety, and other mood disorders by helping to balance certain natural chemicals in the brain. It is commonly prescribed for conditions such as major depressive disorder, panic disorder, and social anxiety disorder.