Reflected sexual thoughts and imaginations followed buy rituals of praying etc. Excessive praying on religious concern out of keeping with the person's background. The OCD usually presents at the age of 20-30 yr. The person has some problem in life e.g. death of some dear one, problem in marriage etc. It's a multi factorial illness, that is to say that a variety of factors and their combination is responsible.
Important contribution is of certain brain chemicals.
Their decreased presence is considered to be a factor. One such chemical is Serotonin. Inheritance is another importance contributing factor. Sometimes some close relative in family suffers from this illness. Personality of the person might be very perfectionist.