Constipation is a condition characterized by infrequent bowel movements or difficulty passing stool. It can also refer to the passage of hard, dry stool that may be painful to pass. Constipation can be caused by a variety of factors, including a lack of fiber in the diet, dehydration, certain medications, and underlying medical conditions.