Pain before defecation and pain after defecation can be caused by a variety of reasons, generally consider constipation, irritable bowel syndrome, functional dyspepsia, chronic enteritis and other reasons. 1. Constipation: Due to the accumulation of feces in the intestinal tract, the intestinal tube is dilated. The dilated intestinal tube can return to normal after defecation, and the pain symptoms will disappear, accompanied by abdominal distension, frequent farting and other symptoms. 2. Irritable Bowel Syndrome (IBS): The abdominal pain is caused by intestinal dysfunction due to dietary stimulation, excessive stress, and poor rest. After defecation, the intestinal spasm will be reduced, and the abdominal pain will gradually improve. 3. Functional dyspepsia: due to inattention to living habits and dietary habits, patients may have abdominal distension, diarrhea, constipation and other symptoms, before defecation, gastrointestinal peristalsis will cause abdominal pain, only after defecation can make the abdominal pain reduce. 4. Chronic enteritis: can be seen in colitis, proctitis, etc., due to the stimulation of chronic inflammation can lead to abdominal pain before defecation, abdominal pain relief after defecation, can be accompanied by abdominal pressure and pain, abdominal distension and other symptoms. Need to go to the hospital, a clear diagnosis of the cause of the targeted treatment, they can not just randomly use drugs.