The invention discloses a massage bed with an automatic massage function. The bed comprises a bed body, the bottom of the bed body is symmetrically provided with support frames, and the edge of one side of the bed body is provided with a transverse fixing compartment. The invention provides the massage bed with the automatic massage function, the bed is ingenious in structure arrangement and reasonable in arrangement, during working, a human body overlies on or lies on the bed body through the other side, a vertical support rod is raised, and limited by a latch, a walking motor drives a massage roller to rotate, the massage roller abuts the human body and massages the human body, in addition, when the massage roller rotates, a walking gear is driven to rotate, and the walking gear meshes and is in transmission connection with a transverse toothed rail to drive the massage roller to move left and right along a transverse sliding groove in the transverse fixing compartment to perform mobile massage, thereby greatly improving the massage efficiency and the massage effect; in addition, the lifting mechanism is ingeniously arranged, the height of the support frame can be adjusted by shaking a handle shaking shaft by hand, thereby adjusting the height of the bed body, and the massage bed is convenient to use.