Compulsion is an uncontrollable urge to do something repeatedly, to the point of interfering with daily life. On the other hand, obsession is a repetitive thought, image, or idea that is difficult to control and can create anxiety. Both interact with each other, where, in many cases, compulsion is an attempt to relieve the anxiety caused by obsession.