Many corrosion inhibitors are economically disadvantageous or toxic to the environment. Additionally, there are certain requirements for corrosion inhibitors. Therefore, the development of new corrosion inhibitors is one of the important problems in the oil-producing and oil-refining industry. The purpose of this work is the synthesis of new corrosion inhibitors with high inhibitory activity, the establishment of the structure of the compounds obtained and the determination of the anti-corrosion effect with respect to aggressive media. This paper presents the results of research on the development of new iron corrosion inhibitors. New α-aminophosphonates were synthesized based on the Kabachnik-Fields reaction. Formalin, morpholine, phosphite containing residues of industrial non-ionic surfactants - syntanols as radicals were used as a raw material. The compounds obtained were isolated in high yield. The structure of the compounds obtained is established by modern methods of physico-chemical analysis. The protective effect of the compounds obtained was studied by a gravimetric method for 6, 24, 72 hour exposure and an inhibitor concentration of 10, 25, 50, 100 ppm. As an aggressive medium, a highly mineralized medium containing СО2 and Н2S was used in simulated formation water. The dynamics of changes in the protective effect of the resulting aminophosphonate from time to time, at dosages of 2.5-100 ppm, were studied using electrochemical analysis methods. The protective effect of syntanyl-O-ethyl- (N-morpholinyl) methylphosphonate obtained at 25 ppm and a shutter speed of 6 hours is 73-82%. The article shows that with increasing concentration, an increase in the protective effect is observed. The greatest protective (89,6) effect showed O-2- [2- [2- [2- [2- [2- [2- [2- [2- [2- (dodecyloxy) ethoxy] ethoxy] ethoxy] ethoxy ] ethoxy] ethoxy] ethoxy] ethoxy] ethoxy] ethyl-O-ethyl- (N-morpholinyl) methylphosphone at a dosage of 100 ppm.