OCD is characterised by compulsive thoughts and subsequent rituals. The subject feels anxious if he or she does not perform these rituals.

The subject might keep washing his hands again and again in order to prevent contamination. He might be checking the lock a hundred times whether it is properly locked or not. The subject feels anxious if he does not perform the rituals (washing hands, checking the lock).