The pain when the anus is contracted needs to be treated according to the cause of the disease. If it is hemorrhoids, you can use Ma Yinglong hemorrhoid cream, etc.; if it is perianal abscess, medication or incision and drainage; if it is anal fissure, medication or surgical treatment. 1. Hemorrhoids: If the anal contraction caused by hemorrhoids on the pain, you can use local use of Ma Yinglong hemorrhoid cream, but also oral hemorrhoids fast Ning tablets and other drugs, but also with potassium permanganate diluted wash the affected area. 2. Perianal abscess: when there is a perianal abscess, anal contraction will be painful. At this time, you should consult a doctor to choose the appropriate treatment according to the specific situation, generally before the formation of abscess, you can use antibiotics such as amoxicillin and other anti-infective; if the perianal abscess is formed, it should be incised and drained as early as possible, the perianal abscess can be treated with antibiotics such as amoxicillin. 3. Anal fissure: When anal fissure is due to the anal mucosa or skin breakage, it will be painful when the anus is contracted in severe cases. Generally for acute or incipient anal fissure, severe pain, you can use local analgesics such as lidocaine gel paste, you can also use nitroglycerin ointment coated in the affected area, to promote the healing of anal fissure; for the conservative treatment is ineffective, long-lasting and the symptoms of the person, you can consider surgical treatment. As you can see, anal contraction pain should be based on specific causes to choose the appropriate treatment, identify the cause of the disease and actively cooperate with the doctor for treatment.