Sertraline can be taken in combination with other pentazocine reuptake inhibitors, or atypical antipsychotics to treat obsessive-compulsive disorder, and should be accompanied by psychotherapy. Medications with anti-obsessive-compulsive effects include pentazocine reuptake inhibitors. Examples include fluoxetine, fluvoxamine, sertraline, paroxetine, and citalopram. Also in combination with atypical antipsychotics such as risperidone, aripiprazole, quetiapine, olanzapine, etc. can be used to treat OCD. The medication for OCD should be used in full dosage and duration, and should be increased to the maximum therapeutic dosage if it is ineffective, and the use of combinations of medications can be considered when it is ineffective. In addition, psychotherapy can be assisted, such as exposure method, systematic desensitization method, which can correct cognition and relieve anxiety. Medications should be used under the supervision of a physician.