A massage mechanism includes a housing, a massage rock arm group, massage heads, and a drive apparatus. The massage rock arm group includes a left rock arm group and a right rock arm group. Each rock arm group may rock under limitation of spacing grooves and spacing shafts when driven by the drive apparatus. The drive apparatus implements asynchronous actions of the left rock arm group and the right rock arm group. A swing arm connected in a seesaw manner is disposed on each rock arm, so that the massage heads can automatically fit an S curve of a back of a human body, and can be automatically attached to the human body. The present application implements a synchronous kneading function, an asynchronous rubbing function, and a function of performing massage by massage heads that can be automatically attached to a human body, thereby improving user experience.