compulsive behavior
A psychiatric term referring to repetitive, ritualistic actions driven by obsessive thoughts, as seen in OCD.
Compulsive behavior is one of the typical symptoms of obsessive-compulsive disorder.
He suffers from the compulsive behavior of washing his hands repeatedly.