An antibiotic ointment is a topical medication containing one or more antibiotic types. It prevents or treats infections caused by bacteria in minor cuts, burns, and other skin injuries. Antibiotic ointments work by killing or inhibiting the growth of bacteria, thereby preventing the spread of infection.