A nucleic acid molecule encoding a 5-enolpyruvyl-3-phosphoshikimic acid synthase (EPSPS) that provides resistance to glyphosate is provided, that has been optimized for expression in both monocotyledonous and dicotyledonous plants and preferably in soybeans. Methods of use are also provided.