compulsion (n.)

early 15c., "coercion, application of force (to someone) overwhelming his preferences," from Old French compulsion, from Latin compulsionem (nominative compulsio) "a driving, urging," noun of action from past-participle stem of compellere "to drive, force together," from com "with, together" (see com-) + pellere "to drive" (from PIE root *pel- (5) "to thrust, strike, drive").

Psychological sense of "instant impulse to behave in a certain way" is from 1909 in A.A. Brill's translation of Freud's "Selected Papers on Hysteria," where German Zwangsneurose is rendered as compulsion neurosis.

Others are reading

Definitions of compulsion from WordNet

compulsion (n.)
an urge to do or say something that might be better left undone or unsaid;
he felt a compulsion to babble on about the accident
Synonyms: irresistible impulse
compulsion (n.)
an irrational motive for performing trivial or repetitive actions, even against your will;
her compulsion to wash her hands repeatedly
Synonyms: obsession
compulsion (n.)
using force to cause something to occur;
though pressed into rugby under compulsion I began to enjoy the game
Synonyms: coercion