Grinding machine for grinding of a profile, comprising a machine bed , wherein a machining device is arranged on the machine bed , wherein the machining device comprises a swivel head which carries a first grinding spindle with a first grinding tool , especially with a roughing grinding tool, and a second grinding spindle with a second grinding tool , especially with a finishing grinding tool, wherein a workpiece carrier being a rotary table is arranged on the machine bed , wherein the swivel axle (A) of the swivel head is directed horizontally and the axis of rotation (B) of the rotary table is directed vertically, characterized in that the swivel head further carries at least one third grinding spindle with a third grinding tool , wherein the first grinding tool and the second grinding tool are designed as profile tools for grinding of a non-planar contour and wherein the third grinding tool is designed as grinding tool for grinding of a cylindrical or planar surface of the workpiece which has to be ground, wherein the first grinding spindle and the second grinding spindle are designed as rod-shaped or tubular parts with a common longitudinal axis (L) which extend to opposite sides from a centre region (M) of the swivel head , wherein the third grinding spindle comprises a longitudinal axis (K) which intersects perpendicular the longitudinal axis (L) of the first and second grinding spindle , wherein the longitudinal axis (K) of the third grinding spindle is the axis of rotation of the third grinding tool and wherein the first grinding spindle , the second grinding spindle and the third grinding spindle form a T-shaped structure. wherein a machining device is arranged on the machine bed , wherein the machining device comprises a swivel head which carries a first grinding spindle with a first grinding tool , especially with a roughing grinding tool, and a second grinding spindle with a second grinding tool , especially with a finishing grinding tool, wherein a workpiece carrier being a rotary table is arranged on the machine bed , wherein the swivel axle (A) of the swivel head is directed horizontally and the axis of rotation (B) of the rotary table is directed vertically, characterized in that the swivel head further carries at least one third grinding spindle with a third grinding tool , wherein the first grinding tool and the second grinding tool are designed as profile tools for grinding of a non-planar contour and wherein the third grinding tool is designed as grinding tool for grinding of a cylindrical or planar surface of the workpiece which has to be ground, wherein the first grinding spindle and the second grinding spindle are designed as rod-shaped or tubular parts with a common longitudinal axis (L) which extend to opposite sides from a centre region (M) of the swivel head , wherein the third grinding spindle comprises a longitudinal axis (K) which intersects perpendicular the longitudinal axis (L) of the first and second grinding spindle , wherein the longitudinal axis (K) of the third grinding spindle is the axis of rotation of the third grinding tool and wherein the first grinding spindle , the second grinding spindle and the third grinding spindle form a T-shaped structure. <EOS>