The invention relates to a dual-purpose bed for sleep and massage. A mechanism mounting frame is arranged in a bed frame, a positive and negative reciprocating rotary swing massage mechanism is arranged on the bed frame, a massage head extending hole is formed in the bed surface, the positive and negative reciprocating rotary swing massage mechanism is provided with an installation platform and aplatform lifting frame, the installation platform is provided with a transmission shaft and a speed reduction motor,the output shaft of the speed reduction motor is connected to a crankshaft, the crankshaft is in pivot connection with a swing toggling piece, the swing toggling piece is matched with a swing rod, the transmission shaft is arranged on the swing shaft core of the swing rod, the transmission shaft is connected to an eccentric support and an eccentric massage head consisting of massage heads, and the eccentric massage head extends out of a massage head extending hole, the platform lifting frame is provided with vertical sliding rails, a sliding sleeve is arranged on the installation platform, the installation platform is sleeved by the vertical sliding rails of the platform lifting frame through the sliding sleeve on the platform lifting frame, and the platform lifting frame and the installation platform are jointly provided with a lifting device for lifting the installationplatform along the vertical sliding rails. The bed is suitable for sleep and massage.