Karim Ait-Fana came off the bench to grab a dramatic injury-time winner and keep Montpellier in pole position in the Ligue 1 title race after a 1-0 win over Lille.
The pacesetters remain three points ahead of Paris St Germain, who beat Rennes 3-0, although their goal difference is now identical. Montpellier will win their first Ligue 1 title if they can take a point from their final game of the season at already-relegated Auxerre.
It looked as though Montpellier would be denied by a wonderful display from Lille goalkeeper Mickael Landreau but he was to be beaten at the death.
Olivier Giroud burst forward from inside his own half and then produced a pinpoint cross for Ait-Fana to bundle home.
Nene was the star of PSG's victory with an 18-minute hat-trick.
He opened the scoring in the 47th minute, added his second 11 minutes later and then completed his treble from the penalty spot in the 65th minute.
Ajaccio slipped into the relegation zone and Lyon booked a place in next season's Europa League after a dramatic second half at the Stade Francois Coty.
Eduardo cancelled out an opener from Bafetimbi Gomis in the 1-1 draw, while both teams had a player sent off.
Ajaccio will face a tricky assignment at Toulouse on the final weekend of the Ligue 1 season, with their top-flight status now in severe peril.
Auxerre's chances have run out with their 32-year stay in the division coming to an end with a 3-0 at Marseille.
Goals by Rod Fanni, Cesar Azpilicueta and Andre-Pierre Gignac did the damage as Auxerre - French champions as recently as 1996 -
became the first side to be relegated from Ligue 1 this season.
Lorient's survival fight will go down to the wire after falling to an injury-time defeat at in-form Bordeaux.
Yoann Gouffran scored the only goal from the penalty spot after Jeremie Janot had clumsily fouled Cheikh Diabate, as Bordeaux continued their strong end to the season with a fifth straight win.
The hosts secured the victory despite the 86th-minute dismissal of Carlos Henrique for a second yellow.
Defeat leaves Lorient just a point above the drop zone ahead of next week's final game at home to title-chasing PSG, while Bordeaux finish against near rivals St Etienne, when they will hope to hold on to fifth place.
Benjamin Moukandjo bagged a brace as Nancy claimed their first Ligue 1 win in six matches and ended St Etienne's slim hopes of finishing fourth with a 3-2 triumph.
Cameroon striker Moukandjo put the hosts two goals to the good inside 21 minutes but Pierre-Emerick Aubameyang narrowed the deficit seven minutes before the interval.
Yohan Mollo extended Nancy's lead in the 42nd minute and although Laurent Batlles scored to once again narrow the deficit to just one goal, Les Chardons held on.
Bruno Grougi scored a spectacular winner to lift Brest out of the relegation zone on goal difference with a 1-0 win over Valenciennes.
The midfielder netted in the 40th minute, curling a 20-yard free-kick beyond Nicolas Penneteau.
Brest, who travel to face Evian on the final day next Sunday, headed into today's match without a win in five games but climbed two places from 18th to 16th with their success.
They, Caen and Ajaccio all stand on 38 points from 37 games, a point behind Sochaux, Lorient and Nice, and two behind Valenciennes.
Sochaux's hopes of avoiding the drop received another huge boost with a 3-1 victory at Caen.
The visitors led 2-0 at the break through goals from Sloan Privat and Loic Poujol but they needed a 90th-minute strike from Thierry Doubai to seal the points after Caen had pulled a goal back through Benjamin Nivet just before the hour.
Dijon drew 1-1 with Toulouse.
Abdoulaye Meite put the hosts in front with a close-range header in the 27th minute but Ahmed Soukouna levelled a minute before half-time.
Nemanja Pejcinovic scored at both ends as Nice failed to make certain of Ligue 1 safety after a 1-1 home draw with Evian - but only a remarkable series of results could now see them face the drop.
Rene Marsiglia's men will head to Lyon for next week's final game just one point clear of the bottom three - but with five more teams below them all needing to avoid defeat to put Nice in danger.