Tube bending machine for bending tubes or similar elongated blanks, such as profiled sections and bars, the machine comprising: a bending head movable with at least two degrees of freedom in a transverse vertical plane, the bending head being provided with a clamping fixture (20, 22, 24, 26) able to take alternatively an open position, in which it defines a free space such as to allow a tube to be bent to be inserted therein, and a closed position, in which it clamps the tube previously inserted into said free space; first driving means arranged to move the bending head in said transverse vertical plane and to move the clamping fixture (20, 22, 24, 26) between said open and closed positions; a tube-carrying structure rotatable about a first axis of rotation perpendicular to said transverse vertical plane; second driving means arranged to rotate the tube-carrying structure about said first axis of rotation between an initial position, in which the tube-carrying structure is able to receive the tube, and a final position; and an electronic control unit arranged to calculate an initial position of the bending head and a final position of the tube-carrying structure such that the tube carried by the tube-carrying structure is located with a desired orientation in the free space of the clamping fixture (20, 22, 24, 26), and to control said first and second driving means so as to move the bending head in said transverse vertical plane until it reaches the respective calculated initial position, so as to cause the tube-carrying structure to rotate about said first axis of rotation from the respective initial position to the respective calculated final position, and so as to clamp the tube by means of the clamping fixture (20, 22, 24, 26) once the bending head and the tube-carrying structure are positioned in the calculated initial and final positions, respectively. a bending head movable with at least two degrees of freedom in a transverse vertical plane, the bending head being provided with a clamping fixture (20, 22, 24, 26) able to take alternatively an open position, in which it defines a free space such as to allow a tube to be bent to be inserted therein, and a closed position, in which it clamps the tube previously inserted into said free space; first driving means arranged to move the bending head in said transverse vertical plane and to move the clamping fixture (20, 22, 24, 26) between said open and closed positions; a tube-carrying structure rotatable about a first axis of rotation perpendicular to said transverse vertical plane; second driving means arranged to rotate the tube-carrying structure about said first axis of rotation between an initial position, in which the tube-carrying structure is able to receive the tube, and a final position; and an electronic control unit arranged to calculate an initial position of the bending head and a final position of the tube-carrying structure such that the tube carried by the tube-carrying structure is located with a desired orientation in the free space of the clamping fixture (20, 22, 24, 26), and to control said first and second driving means so as to move the bending head in said transverse vertical plane until it reaches the respective calculated initial position, so as to cause the tube-carrying structure to rotate about said first axis of rotation from the respective initial position to the respective calculated final position, and so as to clamp the tube by means of the clamping fixture (20, 22, 24, 26) once the bending head and the tube-carrying structure are positioned in the calculated initial and final positions, respectively.