The possible causes of pain during anal contraction include the following: 1. perianal abscess: due to local inflammatory stimulation, resulting in local contraction around the anus, which eventually leads to pain. 2. anal fistula: painful anal contraction may also be caused by anal fistula, which generally has local inflammatory manifestations, and the inflammation will stimulate the sphincter muscle around the anus to contract, resulting in pain. 3. anal fissure: painful anal contraction may also be caused by rectal cancer: It may also be caused by anal fissure, which is more obvious especially during defecation and also constipation. 4, rectal cancer: painful anal contraction may also be caused by rectal cancer. If you find that anal contraction is obviously painful, what exactly is going on, it is recommended to go to a regular specialized hospital for systematic examination in time so as to make a clear diagnosis.