1. Uncontrollable thoughts or impulses to perform an act, often repetitively, as an unconscious mechanism to avoid unacceptable ideas and desires that, by themselves, arouse anxiety; the anxiety becomes fully manifest if performance of the compulsive act is prevented; may be associated with obsessive thoughts.
The definition information for compulsion is provided by Stedman's. You can search our medical dictionary here.
Stedman's, part of Lippincott Williams & Wilkins, provides a comprehensive line of health-science publications for healthcare professionals and medical students.