Method for producing a thread, in particular an internal thread, with a predetermined thread pitch and with a predetermined thread profile in a workpiece, a) in which a tool is used which can be rotated about a tool axis running through the tool and can be moved axially with respect to the tool axis and which has a thread-generating region, b) wherein the thread-generating region has at least one thread tooth (41,42) which is formed and arranged to match the predetermined thread pitch and has an effective profile which corresponds to the thread profile of the thread, c) and in which the tool is moved into the workpiece or towards the workpiece in a working movement during a first working phase, d) wherein the working movement comprises a rotary movement with a predetermined direction of rotation (VD, RD) about the tool axis and an axial feed movement synchronized with the rotary movement according to the thread pitch in an axial forward direction axially to the tool axis in such a way that an axial feed of the tool by the predetermined thread pitch corresponds to a full revolution of the tool about the tool axis, e) wherein during the working movement the thread-generating region generates the thread, f) wherein the tool, in a deceleration movement following the working movement, is moved further into the workpiece during a second working phase in the same forward direction as during the working movement up to a reversal point, g) where the deceleration movement comprises a rotary movement with a constant direction of rotation (VD, RD) as in the working movement, h) wherein during the deceleration movement the axial feed movement is controlled depending on the angle of rotation of the rotary movement of the tool according to a previously stored unique relationship between the axial feed of the tool and the angle of rotation, and i) wherein the axial feed of the tool during a full revolution is smaller in amount than the thread pitch at least during part of the deceleration movement and is zero at the reversal point, characterized in that j) during the deceleration movement, functions differing from one another are selected or set in a plurality of successive deceleration steps between the axial feed of the tool and the angle of rotation, k) wherein during said plurality of deceleration steps the axial feed is a linear function of the angle of rotation and wherein the slope, i.e. the derivative of the axial feed with respect to the angle of rotation, is constant in each of said deceleration steps and decreases in magnitude from one deceleration step to a subsequent deceleration step. a) in which a tool is used which can be rotated about a tool axis running through the tool and can be moved axially with respect to the tool axis and which has a thread-generating region, b) wherein the thread-generating region has at least one thread tooth (41,42) which is formed and arranged to match the predetermined thread pitch and has an effective profile which corresponds to the thread profile of the thread, c) and in which the tool is moved into the workpiece or towards the workpiece in a working movement during a first working phase, d) wherein the working movement comprises a rotary movement with a predetermined direction of rotation (VD, RD) about the tool axis and an axial feed movement synchronized with the rotary movement according to the thread pitch in an axial forward direction axially to the tool axis in such a way that an axial feed of the tool by the predetermined thread pitch corresponds to a full revolution of the tool about the tool axis, e) wherein during the working movement the thread-generating region generates the thread, f) wherein the tool, in a deceleration movement following the working movement, is moved further into the workpiece during a second working phase in the same forward direction as during the working movement up to a reversal point, g) where the deceleration movement comprises a rotary movement with a constant direction of rotation (VD, RD) as in the working movement, h) wherein during the deceleration movement the axial feed movement is controlled depending on the angle of rotation of the rotary movement of the tool according to a previously stored unique relationship between the axial feed of the tool and the angle of rotation, and i) wherein the axial feed of the tool during a full revolution is smaller in amount than the thread pitch at least during part of the deceleration movement and is zero at the reversal point, characterized in that j) during the deceleration movement, functions differing from one another are selected or set in a plurality of successive deceleration steps between the axial feed of the tool and the angle of rotation, k) wherein during said plurality of deceleration steps the axial feed is a linear function of the angle of rotation and wherein the slope, i.e. the derivative of the axial feed with respect to the angle of rotation, is constant in each of said deceleration steps and decreases in magnitude from one deceleration step to a subsequent deceleration step.