The inhibition effect of a new imidazolpyridine derivative namely 2,6-bis(2,5-dimethyl-2H-imidazol-4-yl)pyridine (BDIP) on corrosion of mild steel in 1 M HCl was studied at 308 K. Weight-loss measurements, potentiodynamic polarisation and impedance spectroscopy (EIS) methods were used. Results showed that BDIP was a good inhibitor and its inhibiting efficiency reaches 97,4% at 10− 3 M. The values of the inhibition efficiency calculated from these techniques are reasonably in good agreement. Polarisation curves revealed that this organic compound acted predominately as a cathodic inhibitor. EIS measurements showed that the charge transfer resistance increases with the inhibitor concentration. The temperature effect on the corrosion behaviour of mild steel in 1 M HCl with and without BDIP at 10− 3 M was studied in the temperature range 308–353 K. The associated activation energy was determined. The adsorption of BDIP on the mild steel surface obeyed to the Langmuir's adsorption isotherm model.