Your doctor may prescribe other medicines if you have other conditions along with OCD. Antidepressants (SSRIs) such as fluoxetine (for example, Prozac), fluvoxamine (Luvox), and sertraline (Zoloft) are commonly prescribed to treat OCD. These medicines are taken as tablets or capsules.