The usual treatment for OCD is cognitive behavioural therapy (CBT), medication or both. A combination of both CBT and medications is often most effective.
Medications
Selective serotonin reuptake inhibitors (SSRIs) are used to help reduce OCD symptoms. SSRIs often require higher daily doses in the treatment of OCD than of depression and may take 8 to 12 weeks to start working, but some patients experience more rapid improvement.
Cognitive Behavioural Therapy (CBT)
A type of CBT called Exposure and Response Prevention (ERP) is usually recommended. In OCD, although compulsions may temporarily reduce anxiety, they actually perpetuate the vicious cycle of obsession-compulsion that prolongs distress. ERP is an effective way to break this cycle. It involves learning to bear the anxiety-provoking situation which triggers compulsions (e.g. touching dirty objects), refraining from undertaking the usual resulting compulsion (e.g. handwashing), and learning that the thoughts and feelings which trigger compulsions are more tolerable than expected and do not lead to the feared outcomes. You may find it challenging at the start, but the process is safe and you will work through your feelings of discomfort with your therapist. You will practise in a gradual fashion, from the less distressing scenarios to the more challenging ones. Over time, the anxiety which feeds the obsessions and compulsions will diminish.