Undecaprenyl pyrophosphate synthase is a cis-prenyltransferase enzyme, which is required for cell wall biosynthesis in bacteria. Undecaprenyl pyrophosphate synthase is an attractive target for antimicrobial therapy. We performed long molecular dynamics simulations and docking studies on undecaprenyl pyrophosphate synthase to investigate its dynamic behavior and the influence of protein flexibility on the design of undecaprenyl pyrophosphate synthase inhibitors. We also describe the first X-ray crystallographic structure of Escherichia coli apo-undecaprenyl pyrophosphate synthase. The molecular dynamics simulations indicate that undecaprenyl pyrophosphate synthase is a highly flexible protein, with mobile binding pockets in the active site. By carrying out docking studies with experimentally validated undecaprenyl pyrophosphate synthase inhibitors using high- and low-populated conformational states extracted from the molecular dynamics simulations, we show that structurally dissimilar compounds can bind preferentially to different and rarely sampled conformational states. By performing structural analyses on the newly obtained apo-undecaprenyl pyrophosphate synthase and other crystal structures previously published, we show that the changes observed during the molecular dynamics simulation are very similar to those seen in the crystal structures obtained in the presence or absence of ligands. We believe that this is the first time that a rare ‘expanded pocket’ state, key to drug design and verified by crystallography, has been extracted from a molecular dynamics simulation.