<p>A method of heat-treating a rail for obtaining a variety of strength levels from medium value to high value. The method has the steps of: preparing a steel rail maintained at a high temperature region not lower than the austenite field, and disposing a nozzle means around the head of the rail such that the nozzle means can direct a gaseous cooling medium towards the head of the rail; determining the distance between the nozzle means and the head of the rail in accordance with both the hardness level to be attained in the head of the rail and the carbon equivalent of the steel constituting the rail; moving the nozzle means such that the distance is attained between the nozzle means and the head of the rail; and directing the gaseous cooling medium towards the head at a predetermined flow rate and for a predetermined time so as to cool the head of the rail thereby attaining the desired hardness level in the head of the rail.</p>