Stade Rennais has signed France goalkeeper Steve Mandanda on a two-year contract from Olympique de Marseille, the Ligue 1 clubs announced on Wednesday.

The 37-year-old, who still had two years left on his contract, leaves Marseille after 613 games -- a club record -- across two spells, the highlight of which was its league title success in the 2009-10 season.

READ: Women's Euro 2022: England makes winning start in front of record crowd

"Olympique de Marseille and Steve Mandanda have decided to go their separate ways by mutual agreement," the club said in a statement.

"OM would like to sincerely thank Steve for everything he has brought to the club since joining us in 2007."

Rennes finished fourth in Ligue 1 last season, qualifying for the Europa League.