A lathe comprising: a first headstock provided with a first spindle for holding a workpiece (W0, W1, W2), a second headstock provided with a second spindle which can receive the workpiece (W0, W1, W2) from the first spindle in a position facing the first spindle , a first tool post which holds a plurality of first tools (T1) for machining the workpiece (W0, W1, W2) when protruding from the first spindle , a second tool post which holds a second tool (T2) for machining the workpiece (W0, W1, W2) when held by the second spindle , a supporting bed whose side facing the second spindle movably supports the first tool post and unmovably supports the second tool post , the side being in a position in front of the first spindle and behind the front end (Wla) of the workpiece (W0, W1, W2) protruding from the first spindle ; a first tool post driving unit (U2) which can move the first tool post in a first axis (Y1) direction perpendicular to an axis (AX1) of the first spindle , wherein the first axis (Y1) direction is a horizontal direction, and a second headstock driving unit (U3) which can move the second headstock in a second axis (X2) direction perpendicular to the axis (AX1) of the first spindle and oblique to the first axis (Y1) direction, wherein the plurality of first tools (T1) are arranged in the first axis (Y1) direction, and the second tool post holding the second tool (T2) is in a position not overlapping the plurality of first tools (T1) in a third axis (X1) direction perpendicular to the axis (AX1) of the first spindle and perpendicular to the first axis (Y1) direction and in a position that the second tool (T2) and part of the second tool post on an extension of the second tool (T2) overlap the plurality of first tools (T1) in a direction (Z1) of the axis (AX1) of the first spindle , wherein the third axis (X1) direction is a vertical direction. a first headstock provided with a first spindle for holding a workpiece (W0, W1, W2), a second headstock provided with a second spindle which can receive the workpiece (W0, W1, W2) from the first spindle in a position facing the first spindle , a first tool post which holds a plurality of first tools (T1) for machining the workpiece (W0, W1, W2) when protruding from the first spindle , a second tool post which holds a second tool (T2) for machining the workpiece (W0, W1, W2) when held by the second spindle , a supporting bed whose side facing the second spindle movably supports the first tool post and unmovably supports the second tool post , the side being in a position in front of the first spindle and behind the front end (Wla) of the workpiece (W0, W1, W2) protruding from the first spindle ; a first tool post driving unit (U2) which can move the first tool post in a first axis (Y1) direction perpendicular to an axis (AX1) of the first spindle , wherein the first axis (Y1) direction is a horizontal direction, and a second headstock driving unit (U3) which can move the second headstock in a second axis (X2) direction perpendicular to the axis (AX1) of the first spindle and oblique to the first axis (Y1) direction, wherein the plurality of first tools (T1) are arranged in the first axis (Y1) direction, and the second tool post holding the second tool (T2) is in a position not overlapping the plurality of first tools (T1) in a third axis (X1) direction perpendicular to the axis (AX1) of the first spindle and perpendicular to the first axis (Y1) direction and in a position that the second tool (T2) and part of the second tool post on an extension of the second tool (T2) overlap the plurality of first tools (T1) in a direction (Z1) of the axis (AX1) of the first spindle , wherein the third axis (X1) direction is a vertical direction. <EOS>