The invention relates to the technical field of friction welding, in particular to a friction welding machine capable of rolling and leveling workpieces. It includes a mounting frame mechanism, the mounting frame mechanism includes a base, a No. 1 mounting frame is fixed on the top of the base, and a No. 2 mounting frame is fixed on the side of the No. One side of No. 2 mounting frame is fixed with No. 3 mounting frame, and the top of described No. 3 mounting frame is equipped with driving motor, and the output end of described driving motor is connected with No. 2 clamping mechanism, and the top of described No. 2 mounting frame is positioned at The outer wall of the No. 2 clamping mechanism is connected with an eccentric mechanism. In the present invention, by setting the connection mechanism and the grinding mechanism, the connection mechanism can quickly install or disassemble the grinding head, and the process is convenient. After the welding is completed, the grinding mechanism can quickly polish the weld seam, so that the welding is completed and rolled The purpose of leveling is to reduce the processing failure required by the workpiece, thereby reducing production costs.