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.
|Cattermole pens long-term Sunderland deal|
|United States v Guatemala: Klinsmann backs Dempsey ahead of Gold Cup warm-up|
|West Ham working on Jenkinson return - Gold|
|Milan agree deal for Bacca|
|Real buy back Vazquez from Espanyol|
|Richards leaves Swansea for Fulham|
|McShane signs for Reading|
|Giggs tells youngsters to seize US chance|
|Hammond pens Leicester extension|
|Only Schweinsteiger can decide Bayern future - Guardiola|
|Cech plans to play until he´s 40|
|Montoya arrives in Milan ahead of Inter move|
|Hernandez out of Gold Cup|
|US asks Switzerland to extradite seven FIFA officials|
|MLS Preview: Sounders seek momentum switch|
|Mexico 0 Honduras 0: Hernandez injury sours friendly|
|Hernandez taken to hospital|
|Garay in doubt for Copa America final|
|Wambach: USA peaking for World Cup final|
|Bassett ´an absolute hero´ despite own goal - Sampson|
|Japan 2 England 1: Late own goal breaks English hearts|
|Salvo quits as Valencia president|
|Costa not Ribery cover - Bayern director Sammer|
|Chile, Argentina deserve final spots - Mena|
|Ramos keen on United switch - Calderon|
|B36 1 The New Saints 2: Wilde leaves it late to secure advantage|
|Sevilla agree deal for Rami|
|Celtic snap up United teenager Janko|
|Beauvue passes Lyon medical|
|Roma bring in Falque|
|Coates completes permanent Sunderland switch|
|Vallecano to make charity donations from shirt sales|
|Angella commits to Watford|
|Gundogan pens new Dortmund deal|
|Juve reject €80million Barca offer for Pogba, says Marotta|
|Ruiz seals permanent Villarreal move|
|Mourinho respects Cech´s decision to quit Chelsea|
|Claridge excited by potential Pearson successors|
|Miranda completes Inter switch|
|Blind takes over as Netherlands coach|
|Mourinho: Premier League tougher to win than ever|
|Hamburg make Holtby move permanent|
|Southampton terminate Osvaldo contract|
|BREAKING NEWS: Swansea swoop for Eder|
|Abbiati extends Milan stay|
|Cruyff: Barcelona have lost their values|
|Vydra seals Watford move|
|Ambitious Clyne targets trophy haul with Liverpool|
|Claridge: Off-field incidents cost Pearson his job|
|Clyne becomes Liverpool´s sixth close-season signing|
|Imbula leaves Marseille for Porto|
|FIFA chief Blatter challenges critics to prove corruption claims|
|Distin joins Bournemouth|
|Bayern seal Costa deal|
|Arsenal confirm Diaby departure|
|Blatter to miss Women´s World Cup final|
|Bogdan sets sights on being Liverpool number one|
|Danilo eager to get started at Real Madrid|
|Leicester´s Wood joins Leeds|
|Porto confirm Atletico move for Martinez|
|Lloyd: Repetition key to netting penalty|
|Sheffield Wednesday job a ´dream´ for Carvalhal|
|´We played a complete game´ - Messi|
|Diaz upbeat despite heavy Copa loss to Argentina|
|Martino lauds Messi for selfless performance|
|Viviani makes surprise Verona switch|
|Estonian team wins cup match 31-0|
|No meeting with Arsenal has occurred - Vidal´s agent|
|United States 2 Germany 0: Ellis´ team reach World Cup final|
|Argentina 6 Paraguay 1: Messi leads Martino´s men to Copa final|
|UEFA Europa League Review: FK Zeljeznicar and FC Dacia Chisinau open with wins|
|UEFA Champions League Review: FC Pyunik make winning start|
|Sweden U21 0 Portugal U21 0 (aet, 4-3 on penalties): Carlgren the hero as Swedes claim Euro glory|
|Frankfurt capture Castaignos|
|Bastia face relegation over debt|
|Bahlouli makes Monaco switch|
|Pearson sacked by Leicester|
|Rekik set for Marseille switch|
|Ranocchia and Carrizo sign new Inter deals|
|Crespo handed Modena role|
|Cech reveals work permit prevented past Arsenal move|
|Ivory Coast cut coaching shortlist down to five|
|McCarthy satisfied with Mings sale|
|Heaton commits to Burnley|
|Bowyer: Rhodes and Gestede will not come cheap|
|Burton and Day depart West Brom|
|Mendilibar makes Eibar return|
|Milan agree to terminate Muntari contract|
|Copa final a dream come true for Sampaoli|
|CSKA Sofia demoted due to financial crisis|
|Wolfsburg warn off De Bruyne suitors|
|Kone: I want to prove I can cut it at Everton|
|West Ham v Lusitans: Bilic set for first game in charge|
|Millennium Stadium to host 2017 UEFA Champions League final|
|Ronaldo a ´possibility´ for Portugal´s Olympics squad|
|Liverpool should get rid of Sterling - Grobbelaar|
|Miranda arrives for Inter medical|
|Arsenal can challenge the best - Cech|
|Real star Bale can be better than Ronaldo, says Keegan|
|UEFA approves changes to FFP rules|
|Honduras v Mexico: Moreno´s injury may force Mexican rethink pre-Gold Cup|
|Hiddink was the wrong man for Netherlands - De Boer|
|Vargas: I was scoring with every shot at training|
|Zambrano red rocked Peru - Gareca|
|Paraguay to change tack against Argentina|
|Sampaoli thrilled with substitutes´ influence, applauds Peru|
|Martino rues Copa America date with former side Paraguay|
|Former Birmingham City player Thwaites among Tunisia victims|
|Chile 2 Peru 1: Zambrano´s red card helps hosts into Copa final|
|Thiago Silva: ´I didn´t even know the ball had hit my hand´|
|Ronaldinho set to sign for Antalyaspor|