The invention provides a pillow. The pillow comprises a lower cover, the lower cover is internally provided with a first rotating shaft and two second rotating shafts, wherein two first synchronous gears of the first rotating shaft are meshed with second synchronous gears on the second rotating shafts, the second rotating shafts are further provided with sliding blocks in a threaded mode, each sliding block is provided with a connecting holder, and a connecting rod is arranged between the two connecting holders; magnetic rotating wheels are connected to the tops of the connecting holders in a pivot mode; an upper cover is connected to the rear side of the lower cover in a pivot mode, the bottom of the lower cover is provided with two inclined blocks, a running rail is arranged on the lower surface of each inclined block in an inward concaving mode, and the magnetic rotating wheels are arranged on the running rails; an ejecting cover is connected to the upper cover in a pivot mode; a supporting rod is connected to the connecting rod in a pivot mode, the upper end of the supporting rod is connected with the ejecting cover in an abutting mode, and the lower end of the supporting rod is connected with the lower cover in an abutting mode. By means of the pillow, the whole set of structure changes transmission in the front-rear direction into the transmission in the left-right direction, and then the transmission is converted into the transmission in the up-down direction again, meanwhile, the action of the ejecting cover is driven, and the integral design achieves the lifting function and the synchronous actions of the left side and the right side of the pillow.