Medication may be helpful in treating some cases of diarrhea. If your symptoms get worse or if the diarrhea lasts more than 2 days, talk to a healthcare provider about stopping the medication. You should never start or stop a medication without talking to your healthcare provider.