Olympique Lyon staged a memorable fightback to earn a 7-1 win at Dinamo Zagreb in their Champions League Group D match on Wednesday evening at Maksimir stadium and reach the knockout stage of the competition at the expense of Ajax Amsterdam.
Ajax started the night three points ahead of Lyon with a superior goal difference. With Ajax losing to group winners Real Madrid, the French side still had a mathematical chance of going through but were seven adrift on goal difference.
Real's 3-0 win in Amsterdam did some of the work but a stunning six-goal showing in the second period against Dinamo was decisive.
Lyon fell behind in the 40th minute to 10-man Dinamo, who had midfielder Jerko Leko sent off for a second bookable foul midway through the first half, before striker Batefimbi Gomis scored four goals to lead their charge into the last 16.
Maxime Gonalons, Lisandro Lopez and Jimmy Briand netted Lyon's other goals to inflict the heaviest defeat for Dinamo in European competition, leaving the home side rooted to the bottom of the group with no points from six games.
Needing an emphatic win to give themselves a realistic chance of going through to the last 16, Lyon came out in an attacking 4-3-3 formation with Briand and Alexandre Lacazette alongside Gomis up front.
Dinamo had taken the lead in the 40th minute when Fatos Beqiraj cut in from the right and fired a drive at Hugo Lloris who made a double-save but the third attempt fell to 17-year-old Mateo Kovacic who stabbed the ball into the roof of the net.
But Lyon drew level just before half-time when Gomis bundled the ball over the line after Aly Cissokho's deflected cross sailed over the stranded Ivan Kelava.
Three minutes after the interval, Maxime Gonalons made it 2-1.
Gomis then completed his hat-trick to beat Blackburn Rovers' Mike Newell's record from 1995 for the quickest triple.
First, he hit his second after 48 minutes after Jimmy Briand slid the ball to the striker to fire past Kelava.
He added his third in the 52nd minute off a pass from Gonalons while his fourth of the evening came from a cross by Ederson in the 70th minute to make 6-1, six minutes after Lisandro Lopez had hit Lyon's fifth.
Briand then made it 7-1 when he placed the ball past Kelava from the edge of the penalty area after a defence-splitting pass from the halfway line put him through.
In Amsterdam, Real notched up a 15th consecutive win in all competitions this season by ending Ajax's hopes 3-0.
Dinamo Zagreb: 30-Ivan Kelava; 3-Luis Ibanez, 6-Arijan Ademi, 24-Domagoj Vida, 14-Sime Vrsaljko; 8-Mateo Kovacic, 16-Milan Badelj, 5-Adrian Calello, 7-Jerko Leko; 10-Sammir, 21-Fatos Beqiraj.
Olympique Lyon: 1-Hugo Lloris; 20-Aly Cissokho, 4-Bakary Kone, 5-Dejan Lovren, 14-Mouhamadou Dabo; 8-Yoann Gourcuff, 15-Gueida Fofana, 21-Maxime Gonalons, 17-Alexandre Lacazette; 18-Batefimbi Gomis, 19-Jimmy Briand.
Referee: Mark Clattenburg (England)