Constipation occurs when waste becomes too hard and dry to pass through the intestines quickly. As a consequence, the following approaches can help you get rid of constipation: Make sure you're getting enough water. Eat a diet high in fibre. Maintain a consistent physical activity routine. Don't dismiss the urge to use the restroom. It is best to prevent sedentary activity.