Metz have made an immediate return to Ligue 1, with former United States manager Bob Bradley's Le Havre falling one goal short of moving into the promotion places on the final day of the season.
Metz held a three-point lead and a superior goal difference by six over Le Havre in the Ligue 2 table heading into the final round of fixtures on Friday.
However, it suffered a 1-0 defeat to Lens at the Stade Felix Bolaert, opening the door for Bradley's team to snatch the final promotion place.
Le Havre was 1-0 up against Bourg-en-Bresse, but a second yellow card for Alliou Dembele in the 35th minute boosted its chances of achieving the big scoreline required.
Bradley's side took a 5-0 lead in the 83rd minute to draw level on goal difference with Metz, but was unable to add to its tally.
Metz held onto third position by virtue of having scored two more goals than Le Havre's 52 across the whole season, earning a return to Ligue 1.
"It is a very difficult night, but it will help us start next season stronger," said Bradley.
Nancy had already been confirmed as Ligue 2 champion before the final round of fixtures, while Dijon finished in second position.