Kemar Roofe’s winner sent Rangers into the Europa League last 16 with a 3-2 victory at Real Betis on Thursday, while Joao Pedro’s late strike helped Brighton sink Marseille.
Rangers, runners-up in the competition two seasons ago, were heading out of the tournament and into the Europa Conference League with the game level 12 minutes from time and Sparta Prague on their way to a 3-1 victory at Aris.
But after a corner was twice not cleared, Roofe bundled the ball home from three yards out to fire Rangers from third to first in Group C.
The Scottish giants had twice led in the first half through Abdallah Sima and Cyriel Dessers, but Juan Miranda and Ayoze Perez both equalised for Betis.
Rangers held on in a frantic finale to inflict a first home defeat of the season on Betis, who had to settle for a Conference League play-off spot.
“(Playing in Europe) is special, it’s always been special during my time here,” Roofe told TNT Sports.
Brighton avoided a Europa League knock-out round play-off in February with a tense 1-0 home win over Marseille in Group B.
Both teams had already secured top-two finishes, but the Seagulls needed a win to usurp OM at the top of the standings.
The Premier League side struggled to break down their visitors for long periods, but Pedro showed neat footwork in the box before drilling the ball into the top corner in the 88th minute to score his sixth goal in as many Europa League matches this season.
“I lost my voice, I lost everything. It was an amazing game. We played amazing football,” said Brighton manager Roberto De Zerbi.
West Ham made it a clean sweep for British teams, finishing top of their group as Mohammed Kudus and Edson Alvarez scored in a 2-0 win over Freiburg, who finished second in Group A.
Earlier, a youthful Liverpool side lost 2-1 at Union Saint-Gilloise in their final group game.
Liverpool manager Jurgen Klopp rang the changes with his team already secure as Group E winners and with an eye on the weekend’s Premier League game against rivals Manchester United, starting six players aged 20 or younger.
Saint-Gilloise, who needed a victory to keep alive their hopes of pipping Toulouse to second place, took the lead through Mohamed Amoura before Jarell Quansah hit back for Liverpool.
Cameron Puertas restored the hosts’ advantage two minutes before half-time with a low strike which beat Caoimhin Kelleher at his near post.
Klopp threw on Joe Gomez, Ryan Gravenberch and Darwin Nunez in the second half, but Saint-Gilloise held on for a famous win, although the Belgians dropped into the Europa Conference League play-off round after Toulouse beat LASK Linz 2-1 in the group’s other game to finish second.
Dani Parejo scored a late winner as Villarreal took top spot in Group F and direct qualification for the last 16 with a 3-2 victory at Rennes.
Lorenz Assignon hammered home in the 12th minute of injury time to seemingly send Rennes back to the group summit, but his goal was ruled out by VAR and scuffles broke out after the final whistle.
VAR intervened because Enzo Le Fee had collected the ball himself after his own free-kick had struck the woodwork in the build-up.
“I also learned (this rule) at that time to be very honest,” Rennes coach Julien Stephan said.
“I knew it was the case from the penalty spot, but I didn’t think it could exist from a free kick.”
The Ligue 1 club only needed to avoid defeat to finish first, but instead will have to face a team dropping out of the Champions League in the play-off.
Azeri club Qarabag finished second in Group H courtesy of a 2-1 success against Haecken.
They were a distant eight points adrift of group winners Bayer Leverkusen, though, as the Bundesliga leaders extended their unbeaten start to the season to 23 matches in all competitions by thrashing Molde 5-1.
In the Conference League, Premier League high-fliers Aston Villa qualified for the last 16 as Nicolo Zaniolo netted his first goal for the club in a 1-1 draw at Bosnian club Zrinjski.