What is the pain in the anus during stool?

There are many reasons for anal pain when defecating, the first one could be hemorrhoids, for example, hemorrhoids tend to aggravate, causing the nucleus of hemorrhoids to repeatedly prolapse out of the anus when it is difficult or constipated to defecate, which can lead to severe anal pain if it cannot be returned, forming a blood clot or even necrosis. The second one, if the stool is dry, can easily damage the skin of the anal canal leading to fissures, which can also lead to anal pain when wiping the stool. Thirdly, after the opening of the anal sinus goes up, the infection of the anal gland usually spreads along the rectum or the anal canal to the perianal area and forms a perianal abscess, which is usually positive for fluctuation after the formation of a perianal abscess and generally causes more pain in the anus when touched. Another reason is that if there is a history of trauma or squatting or beating, it can lead to the skin around the anus being damaged by the attack, which can also lead to pain. Therefore, there are many causes of pain during stool, which should be combined with anal visualization and physical examination, and if necessary, anoscopy should be performed to clarify the cause.