Andre-Pierre Gignac scored a late penalty as Marseille beat Sochaux 2-1 in their Ligue 1 meeting at the Stade Velodrome.
The home side made the perfect start to the game and took the lead within five minutes.
Benjamin Mendy weaved his way down the left wing, before crossing the ball into the box that Florian Thauvin headed home.
Sochaux came close to replying through Roy Contout, who created space to shoot after cutting inside, but he put his effort wide of the post.
Thauvin almost doubled Marseille's lead but was denied from close range by Simon Pouplin, before Jordan Ayew struck a shot wide.
After being under pressure for most of the game, the visitors levelled the scores on the hour mark.
Emmanuel Mayuka picked up the ball on the right, cut inside two defenders and fired a strike into the top corner.
Ayew immediately came close to restoring the home side's lead, but Pouplin pushed away his low effort.
With eight minutes left to play, Marseille were awarded a penalty. Gignac saw his shot blocked by the legs of Mathieu Peybernes, but the ball bounced up and hit his hand.
The referee pointed to the spot and Gignac made no mistake, placing the ball down the middle, with the home side holding out to claim the three points.