β-lactam antibiotics are the most important and widely used antibacterial agents across the world. However, the widespread dissemination of β-lactamases among pathogenic bacteria limits the efficacy of β-lactam antibiotics. This has created a major public health crisis. The use of β-lactamase inhibitors has proven useful in restoring the activity of β-lactam antibiotics, yet, effective clinically inhibitors against class B metallo-β-lactamases (MBLs) are not available. L1, a class B3 enzyme expressed by Stenotrophomonas maltophilia, is a significant contributor to the β-lactam resistance displayed by this opportunistic pathogen. Structurally, L1 is a tetramer with two elongated loops, α3-β7 and β12-α5, present around the active site of each monomer. Residues in these two loops influence substrate/inhibitor binding. To study how the conformational changes of these elongated loops affect the active site in each monomer, enhanced sampling molecular dynamics (MD) simulations were performed, Markov State Model (MSM) were built, and convolutional variational autoencoder (CVAE)-based deep learning was applied. The key identified residues (D150a, H151, P225, Y227, R236) were mutated and the activity of the generated L1 variants was evaluated in cell-based experiments. The results demonstrate that there are extremely significant gating interactions between α3-β7 and β12-α5 loops. Taken together, the gating interactions with the conformational changes of the key residues play an important role the structural remodeling of the active site. These observations offer insights into the potential for novel drug development exploiting these gating interactions.