The utility model discloses a massager. The massager comprises a substrate, a transmission mechanism and massage mechanisms, wherein the transmission mechanism and the massage mechanism are arranged inside the substrate; each massage mechanism comprises a cam driven by the transmission mechanism, the upper surface of each cam is inclined relative to the bottom surface of the cam, and the top of each cam is provided with a cam cover; a massage head is connected between each cam and the corresponding cam cover in a sleeving manner, one side of each massage head is provided with a guide rod for limiting the corresponding massage head to rotate horizontally, and each guide rod is arranged and vertically fixed in a guide groove in the substrate. Through the adoption of the massager, the massage heads can realize synchronous massage or asynchronous massage in a three-dimensional space, so that the user experience is improved, the structure is compact, and the work is stable and reliable.