The synthesized imidazoline phosphate quaternary ammonium salt has low stability, which is spontaneously and rapidly hydrolyzed to the long-chain fatty acid amide (LFA). The hydrolysate (LFA) has been found to be an efficient inhibitor for Q235 steel against CO