Laxatives are a type of medicine that can treat constipation. They're often used if lifestyle changes, such as increasing the amount of fibre in your diet, drinking plenty of fluid and taking regular exercise, have not helped. Laxatives are available to buy from pharmacies and supermarkets.