The invention discloses a gantry type pipe and flat plate cutting machine. The gantry type pipe and flat plate cutting machine comprises a cutting assembly, a plate cutting mechanism, a pipe cutting mechanism and a crossbeam. The crossbeam is provided with a transverse driving unit. The cutting assembly is connected with the crossbeam, and a lifting driving unit is arranged on a cutting assembly installing seat. The transverse driving unit comprises a first gear, a first rack, a first motor and a first track. The plate cutting mechanism comprises a machine frame, a machine table and a longitudinal driving unit. The longitudinal driving unit comprises a second gear, a second rack, a second track and a second motor. The pipe cutting mechanism comprises a feeding track, an end chuck, a movable chuck and a feeding driving unit. The end chuck and the movable chuck each comprise clamping parts, a clamping part installing seat and a chuck body. The gantry type pipe and flat plate cutting machine is provided to meet the machining requirements of pipe products in the digital control cutting machining field, and is easy to control, convenient to use and flexible in clamping, reduces the machining cost of pipe products, and widens the cutting machining range of a digital control cutting machine.