Obsessive–compulsive disorder (OCD) is a mental disorder in which a person feels the need to perform certain routines repeatedly (called "compulsions"), or has certain thoughts repeatedly (called "obsessions").