Solanum tuberosum leaf extract (STLs), used as a biodegradable corrosion inhibitor, was prepared to mitigate the corrosion rate of Q235 steel in HCl medium. The active inhibitory components existing in STLs were tracked by Fourier transform infrared spectroscopy. Electrochemical measurements, morphological characterization and contact angle tests were combined to evaluate the anti-corrosion performance of STLs at various concentrations and different temperatures, and the results show that the addition of STLs can evidently magnify the charge transfer resistance, expand the double layer capacitance at electric /solution interface, and simultaneously reduce the corrosion current density of Q235 steel in HCl medium with the maximum inhibition efficiency of 91.89%. The adsorption behavior of STLs on steel was investigated using X-ray photoelectron spectroscopy and adsorption models. It is revealed that the molecules of STLs spontaneously bind to the substrate through chemical and physical action, forming a protective layer to block the diffusion pathway of harsh ions. Furthermore, theoretical calculations confirm that Solanum tuberosum leaves components were adsorbed on steel substrates through donor-acceptor interactions.