Benfica's UEFA Champions League adventure came to end on Tuesday despite an excellent 2-1 win over Paris Saint-Germain.
Olympiacos' 3-1 triumph over eight-man Anderlecht ensured that the Greeks claimed runners-up spot in Group C, while the Primeira Division side will have to be content with a spot in the Europa League.
It comes as a cruel blow to Jorge Jesus' men after they produced an excellent display against the Ligue 1 champions, recovering from Edinson Cavani's 37th-minute opener to claim the points on home soil.
Lima levelled with a first-half spot-kick, awarded following what appeared to be an accidental clash of heads between debutant Kalifa Traore and Silvio, before Nicolas Gaitan struck the winner 13 minutes into the second half.
But, despite inflicting PSG's first Champions League defeat in 14 matches, Benfica's inferior head-to-head record against Olympiacos saw their dreams of reaching the final, which will be hosted at their own ground, dashed.
PSG coach Laurent Blanc left Zlatan Ibrahimovic and Thiago Silva out of the squad altogether, with Cavani handed a starting berth.
The hosts featured Lima and Lazar Markovic in attack as Rodrigo, whose last-gasp goal earned the vital 3-2 triumph over Anderlecht last time out in the group stage, was named on the bench.
Enzo Perez underlined Benfica's positive intent with an early long-range drive that forced a flying save from Salvatore Sirigu.
And Sirigu was called into action again with seven minutes on the clock, getting down low to his right to palm away Nemanja Matic's near-post effort.
The visitors fired a warning shot on the counter attack as Jeremy Menez raced down the left before seeing his low strike well kept out by Artur.
It was the Portuguese side who carried the greater threat, however, and when Gaitan cut inside, he sent a curling left-footed effort just wide of the stranded Sirigu's right-hand upright as Benfica piled on the pressure.
But eight minutes before the interval, Blanc's charges took the lead as Menez raced to cut back a ball that appeared to be going out of play, with Cavani pouncing to turn home from point-blank range.
However, the response was swift, Lima converting from the spot following Traore's challenge on Silvio.
It should have been 2-1 to Benfica just two minutes into the second half but Gaitan shot woefully wide after Lima's blocked shot bounced to him eight yards out.
Jesus' men continued to press, the lively Lima testing Sirigu's reflexes again with a rising 20-yard strike after 52 minutes, and Luisao heading over two minutes later.
And they got their reward when Gaitan stabbed over the line from deep inside the area following excellent work from Maxi Pereira just before the hour mark.
Substitute Ezequiel Lavezzi almost grabbed an equaliser for PSG but saw his shot go just wide as Benfica held on for the win, only to be left disappointed by the news from Olympiacos.
|James & Ancelotti back Morata for Chelsea success|
|I don´t think Pique was joking – Alba confident Neymar will stay|
|Maldini hails Bonucci capture and backs Milan for Champions League challenge|
|RB Leipzig´s Demme escapes serious injury after reported Keita bust-up|
|Inter 1 Lyon 0: United target Perisic impresses as Jovetic nets winner|
|Leaving so soon? Cassano the latest in football´s long list of short stays|
|You´ll miss me! – Mbappe bids farewell to new Manchester City signing Mendy|
|I always wanted Manchester City, says new signing Mendy|
|Cassano quits Verona as saga takes another twist|
|Manchester City spree continues with Mendy arrival|
|Dortmund rule out selling Sokratis to Juventus|
|Milan coach Montella hopes Scudetto can become ´a concrete goal´|
|Martial is a defender´s nightmare, says Lingard|
|Pedro suffered facial fractures, Conte confirms|
|Bale gunning for more Real Madrid success as United speculation ends|
|Ancelotti rules out Vidal sale, Sanches departure ´a possibility´|
|Van Dijk left out of Southampton´s pre-season trip|
|Bernardeschi attends Juventus medical ahead of €40m switch|
|Bayern president labels big spending ´a sign of weakness´ amid Neymar rumours|
|I sent 10 messages a day - Montella pestered Milan chiefs to attempt Bonucci coup|
|Defoe dreaming of World Cup call-up|
|MLS Review: Timbers, Sounders claim important conference wins|
|Mexico 0 Jamaica 1: Late Lawrence stunner sinks defending champions|
|Vardy: I have no regrets after turning down Arsenal|
|Conte believes Fabregas could be key for Chelsea|
|Blanc: Difficult for Verratti to leave PSG|
|Mourinho praises Martial but wants consistency from United star|
|Morata backed for Chelsea success by Spanish duo|
|Zidane: I haven´t asked for a forward amid Mbappe links|
|Henry: Messi´s development not yet over|
|De Boer compares Zaha to Neymar|
|Neymar could take PSG to next level – Blanc|
|Real Madrid 1 Manchester United 1 (1-2 pens): De Gea proves his worth to Mourinho|
|Belotti scores in Torino win, Terry lifts bizarre Cup of Traditions|
|PSG cannot get Sanchez so they go for Neymar - Wenger|
|De Rossi: Juventus have no weaknesses|
|He´s staying - Pique eases Barcelona fears over Neymar|
|Bordeaux to sign Arsenal flop Wellington Silva|
|Markovic free to leave Liverpool, says Klopp|
|WATCH: Insane hailstorm leads to friendly cancellation|
|Terry lifts bizarre trophy as Aston Villa claim Cup of Traditions crown|
|Kolarov: Lazio was a good experience, but they are my rivals|
|Dybala not worth as much as Neymar - Chiellini|
|Ronaldo: Being better than Messi is my motivation|
|Lahm named German Footballer of the Year 2017 after retirement|
|Danilo sets out Man City Champions League ambition|
|Neymar will stay at Barcelona, insists Marlon|
|Cahill named new Chelsea captain by Conte|
|Kenedy ´strongly reprimanded´ as Chelsea apologise again to people of China|
|Klopp expects Can stay after ´good talks´ over new Liverpool contract|
|Perisic can leave if Manchester United make serious offer – Spalletti|
|Shaw, Young and Rojo have ´no chance´ for start of new season|
|Rooney one of the best in his position - Koeman|
|Leaving on a jet plane - Mendy flies off to LA as Man City move nears|
|Bilic hails arrival of ´massive player´ Arnautovic|
|Bosz: Aubameyang to China talk is ´nonsense´|
|El Salvador´s Romero banned for biting Altidore|
|Real Madrid defender Danilo joins Manchester City|
|Pedro travels home after suffering concussion|
|MLS Review: Villa, New York City end Chicago run as Dallas go top|
|Costa Rica 0 United States 2: Dempsey equals Donovan record in win|
|Valverde: Barcelona must keep Neymar|
|Paris Saint-Germain 2 Tottenham 4: Eriksen, Alderweireld score stunning goals|
|De Gea definitely staying at Man United – Mourinho|
|Mourinho rules out United move for Bale|
|Juventus 1 Barcelona 2: Neymar shines with superb brace|
|Rooney scores again for Everton as Sevilla are shocked|
|Roma sign Kolarov from Man City for €5m|
|Neymar starts for Barca amid increasing PSG speculation|
|Zidane: Morata exit leaves Madrid a striker short|
|Sporting CP 2 Monaco 1: Jardim defeated in Lisbon return|
|I have never denied Ronaldo reports - Zidane|
|Bacca left out because of ´future transfer market moves´ - Montella|
|Danilo leaves Madrid training camp ahead of expected Man City move|
|VfL Bochum 2 Borussia Dortmund 2: Castro and Pulisic spare Bosz´s blushes|
|Chelsea apologise for Kenedy comments|
|West Ham bring in Arnautovic from Stoke in club-record deal|
|Randolph joins Middlesbrough in £5m move|
|Sanchez to PSG branded ´media imagination´ by Wenger|
|´Key player´ Coutinho settled at Liverpool, warns Klopp|
|Ancelotti shocked by Bayern´s AC Milan thrashing|
|Pedro taken to hospital after Ospina collision|
|Bayern´s Bernat suffers ankle ligament damage|
|Liverpool 2 Leicester City 1: Coutinho shines as Klopp´s men prosper|
|Biglia unveiled as Milan´s number 21|
|Arsenal 0 Chelsea 3: Batshuayi brilliance downs Gunners|
|Montella won´t discuss deal for ´talented´ Renato Sanches|
|West Brom 0 Crystal Palace 2: Sako on target for De Boer´s men|
|Modric inherits Madrid´s ´cursed´ number 10 from James|
|Bayern Munich 0 AC Milan 4: Ancelotti´s side battered as Bonucci makes debut|
|Hodgson claims Barkley needs new club to thrive|
|I had no problems with Allegri - Bonucci|
|Manchester United signed Lukaku at the perfect time – Van Nistelrooy|
|Leicester vice-president insists there is ´no real offer´ for Mahrez|
|Pele´s son returns to prison|
|Lacazette will need time, warns Arsenal great Pires|
|Juve boss Allegri doesn´t fear losing Dybala to Barca|
|Bonucci: I didn´t feel important at Juventus|
|Ronaldo presented with Orlando City jersey|
|Valverde: No need to worry about Neymar-PSG links|
|Dortmund deny Aubameyang´s set for CSL|
|Di Maria: Barca star Neymar welcome at PSG|
|Orlando City 0 Atlanta United 1: Villalba´s late stunner sinks Kaka´s men|
|De Bruyne: Don´t compare Lukaku to Messi|