Streptococcus pneumoniae is a life-threatening human pathogen that is increasingly resistant to a wide array of drugs. Resistance to beta-lactams, the most widely used antibiotics, is correlated with tens of amino acid substitutions in their targets; that is, the penicillin-binding proteins (PBPs), resulting from multiple events of recombination. To discriminate relevant substitutions from those that are incidental to the recombination process, we report the exhaustive characterization of all the mutations in the transpeptidase domain of PBP2x from the highly resistant strain 5204. A semi-automated method combining biochemical and microbiological approaches singled out 6 mutations of 41 (15%) that are essential for high level resistance. The hitherto uncharacterized I371T, R384G, M400T, and N605T together with the previously studied T338M and M339F account for nearly all the loss of affinity of PBP2x for beta-lactams. Most interestingly, I371T and R384G cause the conformational change of a loop that borders the entrance of the active site cavity, hampering antibiotic binding. For the first time all the mutations of a PBP relevant to beta-lactam resistance have been identified, providing new mechanistic insights. Most notable is the relationship between the decreased susceptibility to beta-lactams and the dynamic behavior of a loop.