4. Gastrointestinal Infections Infections affecting the gastrointestinal tract can cause vomiting and diarrhea. Depending on the cause, specific tablets may be recommended to address the underlying infection.