The influence of chemical composition and heat treatment on a low-carbon steel, chromium steel and high speed steel has been examined by polarisation curves and electrochemical parameters deduced from the Tafel plots. The electrochemical corrosion resistance, which is small between the as-received steels become greater after heat treatment, following the order: carbon steel < chromium steel $ high speed steel. To explain these differences, the nano-and microstructure of the steels has been characterized by the ex situ techniques of atomic force microscopy and optical microscopy, before and after surface etching with Nital (a solution of 5% HNO 3 in ethanol). This causes preferential attack of the ferrite phases showing the carbide phases more clearly. From these nanostructural studies it was possible to better understand why the passive films formed on chromium steel and high speed steel have superior protective properties to those formed on carbon steel.