A herbicidal compound N-phosphonomethyl glycine is prepared by (a) reacting 1,3,5-tricarbohydrocarbonoxymethyl hexahydrotriazine with a di-monovalent hydrocarbon phosphite to form an ester of N-phosphonomethyl glycine which is thereafter (b) hydrolyzed and the N-phosphonomethyl glycine is recovered.