Cefazolin is a first-generation cephalosporin antibiotic commonly used to treat bacterial infections. It works by inhibiting bacterial cell wall synthesis, leading to cell death. Cefazolin is often chosen for its broad spectrum of activity against gram-positive bacteria and some gram-negative bacteria.