The invention discloses a five-shaft numerical control polishing machine. The five-shaft numerical control polishing machine comprises a machine base, an electric box, a hood, a sliding door, an operation panel, an alarming light, a Y-shaft servo module mechanism, an X-shaft servo module mechanism, a Z-shaft rotating mechanism, a jig, an upright post mechanism, a rotating power mechanism, a wax spraying gun and a wire passing pipe. According to the five-shaft numerical control polishing machine, hardware products can be horizontally moved and longitudinally moved, accurate polishing processing treatment can be carried out on the hardware products of different sizes, swinging polishing of different angles can be carried out on the hardware products, a polishing wheel can perform rotating polishing on the hardware products in different directions under driving of the rotating mechanism, three-dimensional polishing can be carried out on the hardware products, polishing effect is good, polishing precision is high, the problems of polished products that chamfers are sunken, local colors are inconsistent, and colors of the products are different are solved, polishing efficiency is high, the five-shaft numerical control polishing machine is suitable for polishing of the hardware products of different sizes, entire polishing process is operated fully automatically, and utilization is convenient and quick.