NEW DELHI: Real Madrid were defeated in Lisbon by Benfica to finish ninth and will have to face a play-off to reach the last 16 of the Champions League against Benfica or Bodo/Glimt.
Goalkeeper Anatoliy Trubin's sensational 98th-minute header earned Benfica a place in the knockout phase play-offs.
The Eagles looked set to miss out despite recovering from 1-0 down to open up a 3-1 lead thanks to two goals from Andreas Schjelderup either side of Vangelis Pavlidis' penalty.
Kylian Mbappe's second of the game – his 13th league phase goal setting a new record – pushed them out of the top 24 and there they remained until Jose Mourinho ordered Trubin forward and, against opponents suddenly down to nine men, the Ukrainian delivered the telling blow.