It binds to one of the penicillin binding proteins (PBPs) which inhibits the final transpeptidation step of the peptidoglycan synthesis in the bacterial cell wall, thus inhibiting biosynthesis and arresting cell wall assembly resulting in bacterial cell death.