Prenyl pyrophosphate methyltransferases enhance the structural diversity of terpenoids.H owever,t he molecular basis of their catalytic mechanisms is poorly understood. In this study,u sing multiple strategies,w ec haracterized ag eranyl pyrophosphate (GPP) C6-methyltransferase,BezA. Biochemical analysis revealed that BezA requires Mg 2+ and solely methylates GPP.T he crystal structures of BezA and its complex with S-adenosyl homocysteine were solved at 2.10 and 2.56 ,r espectively.F urther analyses using site-directed mutagenesis,m olecular docking, molecular dynamics simulations,a nd quantum mechanics/molecular mechanics calculations revealed the molecular basis of the methylation reaction. Importantly,t he function of E170 as ac atalytic base to complete the methylation reaction was established. We also succeeded in switching the substrate specificity by introducing aW 210A substitution, resulting in an unprecedented farnesyl pyrophosphate C6-methyltransferase.