Constipation is a condition where a person has difficulty passing stools or has infrequent bowel movements. It can cause discomfort, pain, and bloating. Constipation can be caused by various factors such as a low-fiber diet, dehydration, medication, and certain medical conditions.