Abstract. Tannin was extracted from gelam bark and used to produce corrosion inhibitor for mild steel. Tannin was extracted from gelam bark using 70% aqueous acetone for 6 hour. Tannin powder was characterization using fourier transform infrared spectroscopy to analyse chemical component in tannin and Scanning electron microscope (SEM) for tannin physical structure. The tannin effect on the corrosion inhibition of mild steel has been investigated in 1Mol HCl solution for 6 hour followed ASTM. The weight loss method were applied to study the mild steel corrosion behavior in the present and absend of different concentration of tannin (250, 300, 350 )ppm. Tannin act good inhibitor as corrosion inhibitor for mild steel in acid medium. Surface morphology of carbon steel with and without inhibitor was investigated by scanning electron microscopy