Ampicillin is also useful in treating meningitis and other severe infections in newborns. Both these medicines, but especially ampicillin, tend to cause nausea and diarrhea. Avoid giving them to children who already have diarrhea if you can give another antibiotic instead. The other common side effect is rash.