Rangers' Europa League campaign ended in defeat by Porto who progress directly to the last 16 as a result of this comeback win.
It had all begun so well for Danny Rohl's side, who already knew there was no chance of progression, as Djeidi Gassama scored his sixth European goal of the season, heading in an excellent Findlay Curtis cross to give the visitors an early advantage.
Rohl had called on Rangers to play the role of "nasty guests" and if not nasty, they certainly proved awkward in the opening 25 minutes as they comfortably contained their illustrious hosts.
Unfortunately for the Scots, that good early work was undone by some costly slackness.
18-year-old homegrown talent Rodrigo Mora, after a brilliant turn away from Nico Raskin to begin the attack, slammed the ball beyond Jack Butland as it broke back to him off Jayden Meghoma.
Then James Tavernier got himself into a real muddle as he tried to shepherd the ball back to Butland, allowing Francisco Moura the easiest of finishes to put Porto ahead.
And before half-time it was three as Emmanuel Fernandez inadvertently showed his prowess from set pieces once again as he diverted the ball into his own net from a near-post corner.
Rangers never threatened to come back from that two-goal deficit, though nor did the scoreline ever look like becoming embarrassing.
Ultimately, the Europa League ends for Rangers as it began, with a defeat.