A construction machine comprising a torque control apparatus for a three-pump system having a prime mover; a first variable displacement hydraulic pump and a second variable displacement hydraulic pump (2, 3) that are driven by the prime mover; a third variable displacement hydraulic pump that is driven by the prime mover; instruction means for prescribing a target rotation speed of the prime mover; and a prime mover control device for controlling the rotation speed of the prime mover in accordance with the target rotation speed prescribed by the instruction means; the torque control apparatus comprising a first regulator (31; 131) which controls an absorption torque of the first and second hydraulic pumps by controlling the displacements of the first and second hydraulic pumps in accordance with the delivery pressures of the first and second hydraulic pumps; and a second regulator (32; 132) which controls the absorption torque of the third hydraulic pump by controlling the displacement of the third hydraulic pump in accordance with the delivery pressure of the third hydraulic pump, the second regulator (32; 132) including spring means (32a; 213b) for setting the maximum absorption torque available to the third hydraulic pump, the torque control apparatus further comprising: a pressure sensor for detecting the delivery pressure of the third hydraulic pump; and control means (23, 35; 23A, 35; 23B, 35) for computing the maximum absorption torque (Tn) available to the first and second hydraulic pumps (2, 3) in accordance with the delivery pressure of the third hydraulic pump that is detected by the pressure sensor, and outputting a control signal according to the computation result; wherein the first regulator (31; 131) controls the displacements of the first and second hydraulic pumps (2, 3) in accordance with the control signal to ensure that the absorption torques of the first and second hydraulic pumps (2, 3) do not exceed the maximum absorption torque (Tn) computed by the control means, characterized in that the control means is adapted to compute a pump base torque (Tr), which is the total maximum absorption torque available to the first, second, and third hydraulic pumps, in accordance with the target rotation speed prescribed by the instruction means and then compute the maximum absorption torque (Tn) as a value equal to the value determined by subtracting the current absorption torque of the third hydraulic pump from the pump base torque (Tr) a pressure sensor for detecting the delivery pressure of the third hydraulic pump; and control means (23, 35; 23A, 35; 23B, 35) for computing the maximum absorption torque (Tn) available to the first and second hydraulic pumps (2, 3) in accordance with the delivery pressure of the third hydraulic pump that is detected by the pressure sensor, and outputting a control signal according to the computation result; wherein the first regulator (31; 131) controls the displacements of the first and second hydraulic pumps (2, 3) in accordance with the control signal to ensure that the absorption torques of the first and second hydraulic pumps (2, 3) do not exceed the maximum absorption torque (Tn) computed by the control means,