Constipation is often caused by indigestion and anal diseases. Need to promptly identify the causes, and then choose different treatment methods according to different causes. Common causes 1, indigestion: if the long-term diet structure is irregular, it can lead to digestion and absorption function is affected, so there is slow gastrointestinal peristalsis, excessive accumulation of food in the intestine, and then constipation with unformed stool; 2, anorectal diseases: such as colitis, appendicitis and other intestinal inflammation, not only will constipation with unformed stool, but also may have fever or spasmodic intestinal pain and other conditions. In addition, rectal cancer can also lead to constipation and unformed stools, while patients can be accompanied by symptoms such as blood in the stool and abdominal pain. Treatment 1.Improve lifestyle: Patients need to arrange time reasonably and develop good habits of regular bowel movement. Pay attention to drink more water to ensure adequate water intake, and eat as light as possible, and eat more fresh, fiber-rich fruits and vegetables, such as celery, apples, etc. Try to avoid spicy, greasy, fried and other foods. Patients also need appropriate exercise to promote intestinal peristalsis; 2, drug treatment: if caused by dyspepsia, need to timely use under the guidance of professional doctors to promote gastrointestinal dynamics drugs, such as Mosapride, or take digestive enzyme preparations; if the anorectal disease, need to improve the e-colonoscopy, rectal defecography and other examinations, and then for the specific cause of treatment, if it is colitis, should follow medical advice to use mesalazine, vancomycin, etc. If it is colitis, you should use mesalazine, vancomycin and other medications as prescribed.