Zoloft (Sertraline) is safe and effective for the treatment of depression and anxiety. Why? It's the #1 doctor-prescribed brand of its kind. Zoloft has treated millions of people with more types of depression and anxiety than any brand of its kind for over 12 years. And Zoloft is available in multiple strengths, so your doctor can decide the right dose for you. Sertraline is used to treat depression, panic attacks, obsessive compulsive disorders (OCD), and post-traumatic stress disorder (PTSD).