The invention discloses a U-shaped pipe bending mechanism which comprises a bending die, a clamping die and a back die. A pipe penetrates the part between the bending die and the clamping die. The back die is arranged on the side, the same with the clamping die, of the pipe. The inner side of the bending die is an arc bending die face. A crease-resisting back die is further arranged on the side, the same with the bending die, of the pipe. The crease-resisting back die corresponds to the back die. The pipe penetrates the part between the crease-resisting back die and the back die, and the crease-resisting back die abuts against the face of the bending die. The face, making contact with the face of the bending die, of the crease-resisting back die is an arc face, the arc face is matched withthe bending die, and the top end of the side, making contact with the pipe, of the arc face stretches in the side, close to the clamping die, of the bending die. By means of the U-shaped pipe bendingmechanism adopting the above technical scheme, the pipe can be flattened, in addition, the pipe cannot be wrinkled due to stress during bending, and the U-shaped pipe bending mechanism is particularly suitable for machining pipes with thin walls or soft pipes.