Constipation occurs when your bowel movements become less frequent and stools become difficult to pass. It happens most often due to changes in diet or routine, or due to inadequate intake of fiber. You should call a healthcare provider if you have severe pain, blood in your stool or constipation that lasts longer than three weeks.