A poly(ionic liquid) (PIL), poly(1-acetamide-3-vinylimidazolium bromide) (PCVIB), was investigated as a potential hydrochloric acid corrosion inhibitor for N80 carbon steel (N80-CS) at 25°C. In this work, the corrosion inhibition properties of PCVIB were monitored using weight loss, potential dynamic polarization (PDP), electrochemical impedance spectroscopy (EIS), scanning electron microscopy (SEM) and X-ray photoelectron spectroscopy (XPS). Results show that the maximum inhibition efficiency (IE, η) of PCVIB can reach up to 95.8 %, whereas its monomer only exhibits a low IE of η = 33.6 % under the same conditions. Moreover, PCVIB is characteristic of a mixed type inhibitor, which can effectively impede both cathodic hydrogen evolutions and metal dissolution reactions. Additionally, the adsorption of PCVIB on steel surfaces obeys the Langmuir adsorption isotherm. This finding implies that the polymerization can be a viable and facile method to create the highefficiency inhibitor from monomeric units that were found or used with the poor IE previously.