The present invention discloses a rolling-and-swinging device and a massage chair. The rolling-and-swinging device comprises a gear motor, a motor mounting plate, a torque output board, a swing arm, a swing arm synchronizer ring, a damping ring, an optical shutter rotating ring, a swinging monitoring controller, a microcomputer controller, a shaft supporting plate, a frame and curved legs. The massage chair is for commercial sale, wherein the massage chair is equipped with aforementioned rolling-and-swinging device and two curved legs in contact with the ground, and the operation of the rolling and swinging motion of the massage chair is automatic. This invention is characterized by having a simple structure, and being able to operate reliably, low in energy consumption, quiet, and widely applicable.