The effect of Agaviodeae (Agave) as green corrosion inhibitor for mild steel in HCl 1M solution has been investigated by weight loss measurements, potentiodynamic polarization curves and electrochemical impedance spectroscopy. Also, scanning electron microscopy (SEM) and Fourier transform infrared spectroscopy (FT-IR) were applied. Various inhibitor concentrations were used in the range of 0 to 300 ppm at 298, 313 and 333 K. The results indicated that the inhibition efficiency increased with increasing Agaviodeae extract concentration, however, the inhibition efficiency decreased with increasing temperature. The inhibitor was found to behave as a mixed-type inhibitor. The inhibition behavior has been associated with adsorption effects. In fact, the adsorption of the inhibitor on the steel surface follows the Langmuir adsorption isotherm, indicating monolayer adsorption. On the whole, the highest efficiency (96%) was obtained at 300 ppm and 298 K.