Herein, an environment-friendly corrosion inhibitor was synthesised from the bio-based platform compound 5-hydroxymethylfurfural. Weight loss and electrochemical experiments demonstrated that this inhibitor is an efficient mixed-type corrosion inhibitor in HCl...