Ceftriaxone works by inhibiting bacterial cell wall synthesis, which leads to cell lysis and ultimately bacterial death. It binds to penicillin-binding proteins, disrupting the cross-linking of peptidoglycan layers. This mechanism is crucial in its effectiveness against a wide range of pathogenic bacteria.