Abstract:High efficiency corrosion inhibitor can reduce the corrosion effect of acid in oil and gas well production, so as to reduce the entry of iron ions and the blockage caused by sulfur precipitation. In this essay, an imidazoline corrosion inhibitor XR1 with a better theoretical effect was found by quantum chemistry calculation software, and the imidazoline quaternary amine salt inhibitor XR2 was further obtained by quaternization. Their structure characterization, corrosion inhibition mechanism analysis and corrosion inhibition effect evaluation were carried out. The results showed that the corrosion inhibition ratio of the acid solution containing the corrosion inhibitor XR2 was 91.1% under the condition of 90 ℃ and H2S saturation. XR2 exhibited a better corrosion inhibition effect and a good protection effect on N-80 steel sheet, which would be of great significance for the efficient development of oil and gas reservoirs.