Obsessive-compulsive disorder is a chronic mental illness characterized by particular patterns of thoughts and obsessions.