A foot massager having a stretch function includes a body including a housing having a massage cavity for placing the feet, and a foot massage mechanism provided below the massage cavity. A lower part of the body is connected to a support base supporting the body. An upper portion of the massage cavity has a massage air bag capable of squeezing and holding the feet in position. A rear part of the body corresponding to the heels is connected via a pin mechanism to the support base. A front part of the body corresponding to the toes is connected via a swing drive mechanism to the support base. The massage air bag expands, and squeezes the insteps, and holds the feet in position. The swing drive mechanism drives the body to use a pin as a fulcrum to swing up and down and to stretch and massage the feet.