A machine tool for complete machining of workpieces, comprising: - a frame, - a tool spindle comprising a tool holder for receiving a tool, - a primary workpiece holder for receiving a workpiece, and - a secondary workpiece holder, wherein the tool spindle and the primary workpiece holder are movable relative to one another in at least three translatory axes (X, Y, Z) and at least one rotatory axis in order to machine a workpiece accommodated on the primary workpiece holder in a working space, wherein the secondary workpiece holder is fixed relative to the primary workpiece holder in at least one translatory axis (X, Y, Z), wherein the primary workpiece holder is pivotable into a transfer orientation in which gripping of the workpiece by the secondary workpiece holder is made possible, characterized in that the primary workpiece holder is mounted on a Y-carriage, which can be moved in translation relative to the tool spindle, via a pivot bearing so that it can pivot about the rotational axis, the Y-carriage comprises a support flange which is arranged in a rotationally fixed manner with respect to the rotational axis, and the secondary workpiece holder is attached to the support flange. - a frame, - a tool spindle comprising a tool holder for receiving a tool, - a primary workpiece holder for receiving a workpiece, and - a secondary workpiece holder, wherein the tool spindle and the primary workpiece holder are movable relative to one another in at least three translatory axes (X, Y, Z) and at least one rotatory axis in order to machine a workpiece accommodated on the primary workpiece holder in a working space, wherein the secondary workpiece holder is fixed relative to the primary workpiece holder in at least one translatory axis (X, Y, Z), wherein the primary workpiece holder is pivotable into a transfer orientation in which gripping of the workpiece by the secondary workpiece holder is made possible, characterized in that the primary workpiece holder is mounted on a Y-carriage, which can be moved in translation relative to the tool spindle, via a pivot bearing so that it can pivot about the rotational axis, the Y-carriage comprises a support flange which is arranged in a rotationally fixed manner with respect to the rotational axis, and the secondary workpiece holder is attached to the support flange. wherein the tool spindle and the primary workpiece holder are movable relative to one another in at least three translatory axes (X, Y, Z) and at least one rotatory axis in order to machine a workpiece accommodated on the primary workpiece holder in a working space, wherein the secondary workpiece holder is fixed relative to the primary workpiece holder in at least one translatory axis (X, Y, Z), wherein the primary workpiece holder is pivotable into a transfer orientation in which gripping of the workpiece by the secondary workpiece holder is made possible, characterized in that the primary workpiece holder is mounted on a Y-carriage, which can be moved in translation relative to the tool spindle, via a pivot bearing so that it can pivot about the rotational axis, the Y-carriage comprises a support flange which is arranged in a rotationally fixed manner with respect to the rotational axis, and the secondary workpiece holder is attached to the support flange.