The first way is called the HCN Process.
The process starts with hydrogen cyanide (HCN) being synthesized with ammonia (NH3) and methane (CH4). This is catalyzed by Platinum to speed it up. The HCN then reacts with formaldehyde (HCHO) to produce cyanohydrin. Cyanohydrin then reacts with ammonia to produce iminodiacetonitrile (IDAN). IDAN is hydrolyzed in an aqueous solution of sodium hydroxide (NaOH) to produce disodium iminodiacetic acid (DSIDA), as well as ammonia which is recycled and reused for the making of IDAN earlier in the process. DSIDA, phosphorous chloride (PCl3), and formaldehyde are reacted to produce N-phosphonomethyliminodiacetic acid (PMIDA). PMIDA is then oxidized using sodium molybdate, hydrogen peroxide, and iron (II) sulphate to produce the desired product, glyphosate.