A detailed understanding of ligand-protein interaction is essential for developing rational drug-design strategies. In recent years, technological advances in cryo-electron microscopy (cryo-EM) brought a new era to the structural determination of biological macromolecules and assemblies at high resolution, marking cryo-EM as a promising tool for studying ligand-protein interactions. However, even in high-resolution cryo-EM results, the densities for the bound small-molecule ligands are often of lower quality due to their relatively dynamic and flexible nature, frustrating their accurate coordinate assignment. To address the challenge of ligand modeling in cryo-EM maps, here we report the development of GOLEM (Genetic Optimization of Ligands in Experimental Maps), an automated and robust ligand docking method that predicts a ligand's pose and conformation in cryo-EM maps. GOLEM employs a Lamarckian genetic algorithm to perform a hybrid global/local search for exploring the ligand's conformational, orientational, and positional space. As an important feature, GOLEM explicitly considers water molecules and places them at optimal positions and orientations. GOLEM takes into account both molecular energetics and the correlation with the cryo-EM maps in its scoring function to optimally place the ligand. We have validated GOLEM against multiple cryo-EM structures with a wide range of map resolutions and ligand types, returning ligand poses in excellent agreement with the densities. As a VMD plugin, GOLEM is free of charge and accessible to the community. With these features, GOLEM will provide a valuable tool for ligand modeling in cryo-EM efforts toward drug discovery.