Constipation patients are often given recommendations on lifestyle changes they can make to promote overall health and eliminate constipation. Avoiding alcohol and caffeine while drinking plenty of water can help. Consuming more vegetables, fruits, and high-fiber foods, along with fewer high-fat foods like cheese, eggs, and meat can reduce constipation. It is often helpful to increase activity and exercise. Your doctor may ask you to keep a food diary to determine which foods tend to cause constipation if its cause is not clear. Medications may also cause constipation, so you should speak with your healthcare provider about them. Medications for constipation are also available when provided by prescription. When constipation is caused by a structural problem in the colon, surgery may be necessary.