The invention relates to the technical field of packaging machinery, in particular to a boxing machine. The boxing machine comprises a material conveying device, a packaging box feeding device, a packaging box conveying device, a box opening device, a pushing device, a box sealing device, a discharging and shaping device, and a servo control system. The servo control system is in communication connection with the material conveying device, the packaging box feeding device, the packaging box conveying device, the box opening device, the pushing device, the box sealing device and the discharging and shaping device, and can independently control all the devices to start or stop working. According to the boxing machine, independent servo driving of the material conveying device, the packaging box feeding device, the packaging box conveying device, the box opening device, the pushing device, the box sealing device and the discharging and shaping device is implemented through the servo control system; all the devices are independently controlled; and the boxing machine has the advantages of being high in production speed, convenient to operate, high in intelligent degree, powerful in data storage and communication function, stable in performance, low in failure rate, high in safety, high in yield, capable of avoiding packaging material waste and the like.