Many medications have been used for OCD. Some medications that were originally developed for depression also appear to have some positive effects on OCD.
Medications that were developed specifically for anxiety also have been prescribed for OCD. The following questions and answers go through what medications are available for OCD, along with what side effects may be associated with each of these medications.
Further, keep this in mind, many of these medications take several weeks to reach their most effective treatment levels.
Therefore, if you are going to use medications to treat your OCD, you need to commit to several weeks of taking the medication before you may feel that it is beneficial.