Obsession are intrusive thoughts, while compulsion are

repetitive behaviors or mental acts that a person feels driven to perform in response to an obsession. Compulsions are often done to try to reduce anxiety or prevent a dreaded event from happening. An example of obsession could be a constant fear of germs, while a compulsion might be washing hands repeatedly.