Universal grinding machine UB - 2 is determined for grinding of main parts of the railway junction points straight on the railway when removing the defects caused by operation or during reshaping of these parts after regeneration by welding on. A swivelling spindle enables to grind the lateral part of the rail head or the whole rail head.