Ampicillin is a beta-lactam antibiotic belonging to the penicillin group and is effective against a wide range of gram-positive and some gram-negative bacteria. It works by stopping the formation of bacterial cell walls. Ampicillin is often used in more severe infections and is available in both oral and injectable forms, making it versatile in clinical treatment.