If melanosis coli is caused by a laxative you're taking, your doctor may have you stop taking it. This usually stops the condition. But it can take up to a year for the colon wall to return to its normal color.
If you still have constipation, your doctor may suggest other options. These include osmotic laxatives or fiber supplements. These don't cause a color change in the colon. Your doctor may also talk to you about making changes to your diet that can help. These may include eating foods that are rich in fiber and drinking more water. Limiting alcohol can also help.
Your doctor may suggest other lifestyle changes, such as getting enough sleep and being more active. The doctor can also look at any medicines you are taking to see if they are the cause of your bowel problems.