The invention discloses a multi-magnet compressor, which comprises four functional parts: an end cover, a stator assembly, a mover assembly, and a suction and discharge assembly. The end cover includes the left and right end covers; the stator assembly includes the iron casing, the permanent magnet, the insulating plate and the piston casing, etc.; the mover assembly includes the coil frame, the coil group, the movable sleeve, the piston, the piston rod, the piston inner sleeve and the inner stator, etc. , the piston is connected with the piston inner sleeve through the piston rod; the suction and exhaust assembly includes a valve cover, a baffle, an exhaust pipe, a buffer plate, a valve plate and a valve seat, etc.; the coil group is two mutual The coil is wound in the opposite direction and fixed in the annular magnetic field composed of permanent magnet blocks through the coil frame. After the current is passed through, the electromagnetic driving force is generated to drive the moving sub-assembly to move, and then the gas is compressed to do work, compressing the low-pressure gas into a high-pressure gas. Gases have pressure energy. The multi-magnet compressor of the invention has the advantages of compact structure, stable operation, low noise and prolonged service life.