Obsessions are thwarted compulsions. In other words, when one has a compulsion that one is prevented from acting on, one is left with an obsession. Equivalently, compulsions are obsessions that are expressed in behavior. So the relationship between the obsession and the compulsion parallels the relationship between intention and subsequent action.