If you have diarrhea, drink plenty of fluids to prevent dehydration. You can drink water, clear broths, and oral rehydration solutions. Avoid foods that are high in fat, sugar, or caffeine. Stick to bland foods like bananas, rice, applesauce, and toast (BRAT diet). Take over-the-counter antidiarrheal medications if needed, but follow the instructions carefully. Rest and allow your body to recover. If diarrhea persists for more than a few days, is accompanied by severe pain, fever, or bloody stools, seek medical attention immediately.