Dicloxacillin is a narrow-spectrum β-lactam antibiotic of the penicillin class. It is used to treat infections caused by susceptible Gram-positive bacteria. It is active against beta-lactamase-producing organisms such as Staphylococcus aureus, which would otherwise be resistant to most penicillins.