Constipation can happen if you’re not eating enough fiber, not drinking enough water, not moving around much, or taking certain meds. To help, try adding more fiber-rich foods to your diet, drinking plenty of water, getting some exercise regularly, and making a habit of going to the bathroom at the same time every day.