Obsessive-compulsive disorder is a type of anxiety disorder.