Real Betis 2-3 Rangers - Highlights
Kemar Roofe's winner sent Rangers into the Europa League last 16 with a 3-2 victory at Real Betis
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.