Understanding how the chemical environment modulatesthe predominantconformations and kinetics of flexible molecules is a core interestof biochemistry and a prerequisite for the rational design of syntheticcatalysts. This study combines molecular dynamics simulation and Markovstate models (MSMs) to a systematic computational strategy for investigatingthe effect of the chemical environment of a molecule on its conformationsand kinetics. MSMs allow quantities to be computed that are otherwisedifficult to access, such as the metastable sets, their free energies,and the relaxation time scales related to the rare transitions betweenmetastable states. Additionally, MSMs are useful to identify observablesthat may act as sensors for the conformational or binding state ofthe molecule, thus guiding the design of experiments. In the presentstudy, the conformation dynamics of UDP-GlcNAc are studied in vacuum,water, water + Mg2+, and in the protein UDP-GlcNAc 2-epimerase.It is found that addition of Mg2+significantly affectsthe conformational stability, thermodynamics, and kinetics of UDP-GlcNAc.In particular, the slowest structural process, puckering of the GlcNAcsugar, depends on the overall conformation of UDP-GlcNAc and may thusact as a sensor of whether Mg2+is bound or not. Interestingly,transferring the molecule from vacuum to water makes the protein-bindingconformations UDP-GlcNAc first accessible, while adding Mg2+further stabilizes them by specifically associating to binding-competentconformations. While Mg2+is not cocrystallized in theUDP-GlcNAc 2-epimerase complex, the selectively stabilized Mg2+/UDP-GlcNAc complex may be a template for the bound state,and Mg2+may accompany the binding-competent ligand conformationto the binding pocket. This serves as a possible explanation of theenhanced epimerization rate in the presence of Mg2+. Thisrole of Mg2+has previously not been described and opensthe question whether “binding co-factors” may be a conceptof general relevance for protein–ligand binding. [ABSTRACT FROM AUTHOR]