Carbapenem antibiotics have become therapeutics of last resort for the treatment of difficult infections. The emergence of class-A β-lactamases that have the ability to inactivate carbapenems in the past few years is a disconcerting clinical development in light of the diminished options for treatment of infections. A member of the GES-type β-lactamase family, GES-1, turns over imipenem poorly, but the GES-5 β-lactamase is an avid catalyst for turnover of this antibiotic. We report herein high-resolution X-ray structures of the apo GES-5 β-lactamase and the GES-1 and GES-5 β-lactamases in complex with imipenem. The latter are the first structures of native class-A carbapenemases with a clinically used carbapenem antibiotic in the active site. The structural information is supplemented by information from molecular dynamics simulations, which collectively for the first time discloses how the second step of catalysis by these enzymes, namely, hydrolytic deacylation of the acyl-enzyme species, takes place effectively in the case of the GES-5 β-lactamase and significantly less so in GES-1. This information illuminates one evolutionary path that nature has taken in the direction of the inexorable emergence of resistance to carbapenem antibiotics.