Obsessions - intrusive & unwanted thoughts, urges or images that persist or recur & usually cause distress or anxiety; people try to ignore, suppress, or neutralize them.
Compulsion - an excessive repetitive behavior or mental act that a person feels driven to carry out - it usually must be performed according to rigid "rules" or corresponds to an obsession & serves to "neutralize" the obsession & decrease anxiety or distress.