Several factors can contribute to constipation, including a low-fibre diet, inadequate fluid intake, lack of physical activity, certain medications, hormonal changes during pregnancy or menopause, underlying medical conditions like hypothyroidism or irritable bowel syndrome (IBS), and psychological factors such as stress or anxiety.