Constipation caused by hemorrhoids can be treated by diet and medication. 1, pay attention to diet, avoid spicy or stimulating food, you can drink more water, drink more honey or paraffin oil to soften the stool and promote the smooth discharge of stool, you should eat more fruits, such as grapes, bananas, etc., can promote the formation of stool, discharge, eat more coarse fiber food to promote the formation of stool, promote gastrointestinal peristalsis; 2, you can take oral laxatives such as Polyethylene glycol, can promote gastrointestinal motility, relieve constipation, and promote the smooth discharge of stool. If constipation causes hemorrhoids, you can also take a sitz bath with warm salt water or 1:5000 potassium permanganate solution to promote perianal blood circulation and reduce the swelling of the hemorrhoid nucleus, thus reducing the role of hemorrhoids; 3. You can also apply hemorrhoid plugs or hemorrhoid cream treatment, which can play a local anti-inflammatory and anti-swelling role. In conclusion, the treatment of constipated hemorrhoids should first be solved through diet and also medication to reduce abdominal pressure and prevent the anal cushion from moving down, thus solving the root of the hemorrhoids.