► Extraction solvent significantly affected the phenolic profiles of R. apiculata bark extracts. ► 70% acetone is most efficient solvent for tannin extraction; high yield and high tannin content. ► All mangrove bark extracts were found to have some degree of inhibition in acidic medium. ► A good correlation was obtained between corrosion inhibition properties and condensed tannin contents.