The appendix is a small pouch near where the large and small intestines meet. Often believed to be a useless body part, it’s actually meant to protect good bacteria in the gut. If you have diarrhea, the good bacteria in the appendix will help to keep you healthy.