Metallo‐β‐lactamases (MBLs) are some of the best known β‐lactamases produced by common Gram‐positive and Gram‐negative pathogens and are crucial factors in the rise of bacterial resistance against β‐lactam antibiotics. Although many types of β‐lactamase inhibitors have been successfully developed and used in clinical settings, no MBL inhibitors have been identified to date. Nitrocefin, checkerboard and time‐kill assays were used to examine the enzyme behaviour in vitro. Molecular docking calculation, molecular dynamics simulation, calculation of the binding free energy and ligand‐residue interaction decomposition were used for mechanistic research. The behaviour of the enzymes in vivo was investigated by a mouse infection experiment. We showed that theaflavin‐3,3´‐digallate (TFDG), a natural compound lacking antibacterial activities, can inhibit the hydrolysis of MBLs. In the checkerboard and time‐kill assays, we observed a synergistic effect of TFDG with β‐lactam antibiotics against methicillin‐resistant Staphylococcus aureus BAA1717. Molecular dynamics simulations were used to identify the mechanism of the inhibition of MBLs by TFDG, and we observed that the hydrolysis activity of the MBLs was restricted by the binding of TFDG to Gln242 and Ser369. Furthermore, the combination of TFDG with β‐lactam antibiotics showed effective protection in a mouse Staphylococcus aureus pneumonia model. These findings suggest that TFDG can effectively inhibit the hydrolysis activity of MBLs and enhance the antibacterial activity of β‐lactam antibiotics against pathogens in vitro and in vivo.