Marseille have signed Dimitri Payet from West Ham for a fee of £25 million, the French side have confirmed.
The France international, who left OM to join the Hammers back in 2015, has signed a four-and-a-half-year deal after successfully completing a medical on Sunday.
Payet joined West Ham from Marseille in 2015 and starred in his first season in England, earning a place in France's Euro 2016 squad and scoring three goals in a run to the final.
Despite signing a bumper five-year deal in February last year, Payet became unsettled with West Ham struggling for form this term and an exit had been on the cards ever since manager Slaven Bilic revealed he was refusing to play midway through January.
In total, Payet netted 18 goals in 66 appearances for West Ham.
He scored 15 times in 83 outings in all competitions during his first spell at Marseille, staying at Stade Velodrome for two seasons after leaving Lille.
It has been a period of change for Marseille since, with American tycoon and former Los Angeles Dodgers owner Frank McCourt purchasing the club in August.
Ex-Roma head coach Rudi Garcia replaced interim boss Franck Passi and France international Patrice Evra arrived from Italian champions Juventus.
Marseille sixth in Ligue 1 after 22 matches, trailing leaders Monaco by 16 points, and will unveil Payet to the media at their training ground on Monday.