Doctors can treat constipation with prescription stool softeners and other types of laxatives.
People who have mild constipation may find dietary and lifestyles changes beneficial. Drinking more hydrating fluids, consuming more dietary fiber, and exercising regularly can help stimulate bowel movements.
Also, various over-the-counter laxatives are available at pharmacies and some supermarkets.
Prolonged constipation can result in an intestinal obstruction, or blockage. Or, it can cause fecal impaction, in which hard stool becomes stuck in the rectum, preventing the person from passing stool effectively. Either condition may require surgery.
A person may also need surgery when constipation results from a structural issue, such as a stricture or rectal prolapse.
Depending on the severity of the condition and how the body responds to other treatments, the surgery may involve removing part of the colon, or large intestine.
Source Article from https://www.medicalnewstoday.com/articles/327020.php