Method for producing a bent part from flat material, wherein the flat material is fed from a material supply to a bending machine and is re-shaped in the bending machine to form a bent part composed of flat material that is bent in a two-dimensional or three-dimensional manner, the bent part is cut off from the fed flat material in a cutting operation, and a permanent deformation is produced in at least one portion of the flat material by way of twisting of the flat material by means of a twisting operation, wherein the twisting operation is carried out at the flat material guided in the bending machine by means of a twisting device, which is integrated into the bending machine, before the bent part is cut off from the fed flat material, characterized in that the bending machine has a drawing-in device for drawing in flat material from a material supply with flat material in a drawing-in direction, wherein the drawing-in device is rotatable about the drawing-in direction by means of a rotary drive, the bending machine has a bending device with a bending head for bending the flat material to form a bent part composed of flat material that is bent in a two-dimensional or three-dimensional manner; and the twisted portion is produced in the region between the drawing-in device and the bending head of the bending machine, wherein, during the twisting operation, the flat material is guided and/or held by controllable devices of the bending machine on both sides of a portion to be twisted, and the controllable devices have a rotatable component (210, DK) which has a feedthrough opening for passage of the flat material, wherein, for producing the twisted portion, the rotatable component is rotated about a twist axis by means of a twist drive of the bending machine, wherein the rotary drive of the drawing-in device of the bending machine or a twist drive which is separate from the drawing-in device is used as twist drive for rotation of the rotatable component. the flat material is fed from a material supply to a bending machine and is re-shaped in the bending machine to form a bent part composed of flat material that is bent in a two-dimensional or three-dimensional manner, the bent part is cut off from the fed flat material in a cutting operation, and a permanent deformation is produced in at least one portion of the flat material by way of twisting of the flat material by means of a twisting operation, wherein the twisting operation is carried out at the flat material guided in the bending machine by means of a twisting device, which is integrated into the bending machine, before the bent part is cut off from the fed flat material, characterized in that the bending machine has a drawing-in device for drawing in flat material from a material supply with flat material in a drawing-in direction, wherein the drawing-in device is rotatable about the drawing-in direction by means of a rotary drive, the bending machine has a bending device with a bending head for bending the flat material to form a bent part composed of flat material that is bent in a two-dimensional or three-dimensional manner; and the twisted portion is produced in the region between the drawing-in device and the bending head of the bending machine, wherein, during the twisting operation, the flat material is guided and/or held by controllable devices of the bending machine on both sides of a portion to be twisted, and the controllable devices have a rotatable component (210, DK) which has a feedthrough opening for passage of the flat material, wherein, for producing the twisted portion, the rotatable component is rotated about a twist axis by means of a twist drive of the bending machine, wherein the rotary drive of the drawing-in device of the bending machine or a twist drive which is separate from the drawing-in device is used as twist drive for rotation of the rotatable component.