BACKGROUND: In this study, the azo dye, 4-methyl-1-phenyl-3-(p-tolyldiazenyl)-2,3-dihydro-1H-pyrrol-2-ol METHODS: Potentiodynamic polarization (PP) and electrochemical impedance spectroscopy (EIS) methods were employed. Additionally, Monte Carlo (MC) simulations and density functional theory (DFT) were utilized to establish a link between the protective capacity and the molecular structure of the inhibitor. SIGNIFICANT FINDINGS: The inhibitor confirmed an impressive inhibition prohibition of 91 % when its concentration was increased to 1 × 10