What is obsessive-compulsive disorder (OCD)? Obsessive-compulsive disorder (OCD) is a type of mental illness. If you have OCD, you