Ampicillin is used to treat a wide variety of bacterial infections. It is a penicillin-type antibiotic. It works by stopping the growth of bacteria.
This antibiotic treats only bacterial infections. It will not work for viral infections (such as common cold, flu). Using any antibiotic when it is not needed can cause it to not work for future infections.