Ampicillin is a broad-spectrum antibiotic that belongs to the penicillin group of drugs. It is used to treat a variety of bacterial infections, including respiratory tract infections, urinary tract infections, gastrointestinal infections, and meningitis. This medication works by inhibiting the growth of bacteria, thereby eliminating the infection.