Antibiotics work by binding to bacterial cells and penetrating their cells walls.
Antibiotics are divided into classes based on how they enter cell walls and destroy bacteria.
This is called the mechanism of action. Some antibiotics work best on certain types of bacteria.
Your healthcare provider may treat you with a broad-spectrum antibiotic that works against both gram-positive and gram-negative bacteria