The corrosion at industrial level produces a great economic loss, it is then when the necessity in the industry to apply technologies that mitigate this phenomenon, one of these technologies is the use of corrosion inhibitors. Commercial inhibitors are major environmental pollutants, so in the last decade, there have been numerous studies using various plant extracts, which act as corrosion inhibitors with high efficiency. Electrochemical tests were carried out to evaluate the inhibitory effect of mango extract in electrochemical medium of 3.5 % NaCl and 1 % H2SO4 on AISI 1045 steel. The corroded surface was analyzed with scanning electron microscopy (SEM) and energy dispersive spectroscopy (EDX) techniques. It was obtained that the mango extract presented efficiencies above 80 %, in the study media, being the highest efficiency (96.5 %) in acid medium. Scanning electron microscopy (SEM) corroborated the results obtained and allowed establishing that the inhibition mechanism is by physiadsorption.