The utility model relates to a kind of
portal frame and
machine tool, comprising: first crossbeam and reinforcing square tube, the cavity is formed in the first crossbeam inside, the first crossbeam extends horizontally, the reinforcing square tube extends longitudinally, the reinforcing square tube is inserted into first crossbeam longitudinally and is fixedly connected with first crossbeam.The first crossbeam of the utility model is divided into multiple segments by reinforcing square tube, the first crossbeam part of the lateral two sides of reinforcing square tube is different segment, the lateral two ends of segment are supported by support structure, and the lateral length of segment is shorter than first crossbeam, so the middle part of segment is more difficult to produce bending deformation due to external force or
dead weight, the first crossbeam of multiple segments is also more difficult to produce deformation, and the movement accuracy of the drive mechanism installed on the first crossbeam is improved, and the
machining accuracy of workpiece is finally improved.