Olympiacos qualified for the last 16 of the UEFA Champions League despite missing two penalties in a 3-1 victory over eight-man Anderlecht.
Javier Saviola put the hosts ahead shortly after the half-hour mark, before Sacha Kljestan pulled the Belgians level out of nothing before the break.
Saviola then saw his penalty saved four minutes into the second period, after Cheikhou Kouyate had been dismissed for a second yellow card, but made up for it by restoring Olympiacos' lead nine minutes later.
Substitute Vladimir Weiss had a chance to all but seal qualification in the 72nd minute, but found Silvio Proto in inspired form as the goalkeeper kept out another spot-kick, before Fabrice N'Sakala became the second Anderlecht player to be given his marching orders late on.
Remarkably, a third penalty was awarded and Proto dismissed for his foul on Weiss, and substitute Alejandro Dominguez kept his cool against stand-in keeper Aleksandar Mitrovic to wrap up the win.
The result sends the Greek side through due to their superior head-to-head record against Benfica, who triumphed 2-1 against Group C winners Paris Saint-Germain.
Saviola and Michael Olaitan came into the Olympiacos starting XI as part of four changes to the side that beat Asteras Tripolis 2-0 in the Greek Super League on Saturday.
Anderlecht, meanwhile, made just one alteration from their 2-0 victory over Waasland-Beveren in the Belgian Pro League at the weekend, with Luka Milivojevic replacing the suspended Massimo Bruno.
Olympiacos applied the early pressure, but failed to take advantage of two free-kicks from the edge of the penalty area.
Saviola and David Fuster exchanged passes brilliantly in the 32nd minute to set up a chance for the Argentine, who glanced his effort agonisingly wide.
However, he made up for that miss less than a minute later, firing a low left-footed effort into the bottom right-hand corner of the net after receiving the ball from Fuster once again.
But Anderlecht levelled six minutes later with their first attack of the match. A counter from an Olympiacos corner culminated in Dennis Praet squaring the ball to Kljestan, who was left with a simple finish from 12 yards.
Olympiacos were awarded a penalty just four minutes into the second half, with Kouyate shown a second yellow card for his handball in the area.
But the subsequent spot-kick was poor, Proto getting down to his left to keep out Saviola's strike with relative ease.
Saviola went from villain to hero nine minutes later by acrobatically getting the final touch to a Fuster strike and divert the ball beyond Proto to restore the hosts' lead.
Roberto had to be alert to deny Guillaume Gillet, before N'Sakala brought down Weiss in the area 18 minutes from time, handing the hosts a second penalty. But they failed to make the most of the chance once again as the Slovak was denied by Proto.
N'Sakala picked up his second yellow card in the closing stages and Proto followed him down the tunnel in stoppage time, with Dominguez completing the scoring from the spot.
|No back-three fears for Spain boss Del Bosque|
|Grigg fired by Euro bench duty|
|Davis: Stranger things have happened than O´Neill to Southampton|
|Gunnarsson insists Iceland do not fear England|
|Brilliant Hazard inspires Belgium´s golden boys|
|Student Morata wants to bring down Juventus masters with Spain|
|Hungary 0 Belgium 4: Hazard inspires Wilmots´ men into quarter-finals|
|Conte demands extraordinary Italy to topple Spain|
|Nolito: No contact with Barca or Man City|
|Alves jets into Turin for Juve medical|
|Low: No sleepless nights over Italy or Spain|
|Kozak: Germany had too much quality|
|Fury gets in the spirit with England fans in Nice|
|Draxler shares the plaudits as Germany move through|
|O´Shea not drawn on Ireland future|
|Rami: France were scared of going out|
|Germany 3 Slovakia 0: Spain or Italy await for world champions after comprehensive win|
|Brilliant Boateng gets Germany juggernaut motoring|
|Lagerback hopes England´s attacking struggles will continue|
|Juventus, Napoli and Roma ´all interested in De Sciglio´|
|O´Neill hails coming of age for Ireland´s youngsters|
|England will not disrespect Iceland, says Rooney|
|Deschamps stands firm on team changes|
|Hodgson adamant he is happy with England strikers|
|Evra: We knew it would be difficult|
|Deschamps: We had to dig deep|
|Rooney: Do not question Sterling´s attitude|
|O´Neill: France´s extra rest took its toll|
|France star Payet: It is difficult to stop us|
|Griezmann: Stern words led to second-half fightback|
|Coleman: We felt it was there for us|
|Deschamps defies doubters as France heed call to arms|
|Konko ´in talks´ to join AC Milan|
|Sigurdsson looking forward to dream England clash|
|Cacic: Croatia´s time will come|
|Italy v Spain will be different to Euro 2012 final - Camoranesi|
|France 2 Republic of Ireland 1: Griezmann double rescues hosts|
|Capello: Spain are pure magic|
|Wolfsburg complete Bruma signing|
|Koke: Spain need to bring back ´The Red Fury´|
|Pizzi: Chile can beat Messi and Argentina|
|Schalke swoop for Swiss star Embolo|
|Subotic signals intention to leave Dortmund|
|Howedes eager for France showdown|
|Russia confirm Slutsky resignation|
|Pirlo: Italy out for Spain revenge|
|Vokes consoles McAuley after Wales march on|
|Italy-Spain a battle of world´s best - Llorente|
|Messi one win away from becoming the greatest|
|Play-offs the goal as Baptista settles into life in Orlando|
|Colombia closer to winning titles - Pekerman|
|MLS Review: Kaka scores 100th-minute penalty in thriller, Lampard inspires NYC|
|Portugal ´don´t have a clue how they scored´ – Rakitic|
|Klinsmann: USA should be proud of Copa America display|
|United States 0 Colombia 1: Bacca secures third place at Copa America|
|Corluka: Portugal among worst teams at Euro 2016|
|Sanches happy to be involved as Portugal reach quarters|
|Euro 2016 Diary: Shaqiri rivals Pique for Shakira´s affection, Bale reveals secret weapon|
|Morata: I have nothing to prove to Zidane|
|Di Maria fit for Copa final|
|´You do not always win by playing prettily´ - Santos unconcerned by dour Portugal|
|The best team lost, says disconsolate Cacic|
|Fabianski: Poland must create more for Lewandowski|
|McAuley pride after crushing Wales loss|
|Ronaldo takes one for the team as Portugal emerge from drudgery in Lens|
|Croatia 0 Portugal 1 (aet): Quaresma earns quarter-final berth|
|Hodgson will not beg for FA approval after Euro 2016|
|Emotional Bale glad to share Paris joy with family|
|O´Neill left frustrated by officials following Euro 2016 exit|
|Coleman hails Bale brilliance in Wales win|
|Low relying on Kroos to lead Germany the way|
|Italy v Spain: Thiago denies shirt jinx ahead of Azzurri clash|
|O´Neill: McAuley has been magnificent|
|Szczesny thanks Swiss fans for drink|
|Hector: Slovakia have plenty of quality in attack|
|Morata: Italy defenders have told me to wear a helmet|
|Coleman content with scrappy Wales progression|
|Wales remain and Northern Ireland leave after Paris battle|
|We are free of pressure - Gera|
|´Do I look like I have doubts?´ - Defiant Nawalka defends Lewandowski|
|Wales 1 Northern Ireland 0: McAuley´s woe is Welsh joy|
|No chance Barcelona star Neymar will join Madrid, says his father|
|Witsel happier to face Hungary than Spain|
|Wilmots accepts pressure ahead of Hungary test|
|Slovakia can upset Germany again - Pekarik|
|Shaqiri unhappy with Poland celebrations after Euro 2016 exit|
|Grosicki struggled to watch Poland shootout win|
|Poland need Lewandowski to rediscover ruthless streak|
|Switzerland 1 Poland 1 (aet, 4-5 pens): Xhaka shocker costs Swiss after Shaqiri magic|
|Payet can handle hero status - Deschamps|
|Redmond joins Southampton on five-year deal|
|Sturridge: Sterling unfairly targeted over England performances|
|Wilmots: I want more from smiling De Bruyne|
|Croatia star Perisic unveils latest wacky hairstyle|
|Brazil´s Lucas Lima wants European move|
|Lloris tempers talk of Ireland revenge mission|
|Deschamps refuses to make France ´98 comparisons|
|O´Neill confident Ireland can shock France|
|Chiellini will give Morata a few kicks - Barzagli|
|England v Iceland: Rooney targets early goal|
|Italy´s Candreva ruled out of Spain match|
|Butland ready for pre-season after scan gives goalkeeper all-clear|
|Origi not underestimating Hungary|
|Plans drafted for Old Firm games to be played abroad|
|Boost for Germany as Boateng trains ahead of last 16|
|I never saw Ronaldo look in the mirror! - Ancelotti|
|Fabregas fears Brexit will damage Premier League|
|Roy not keen on Ireland allocation|
|Dyke backs Hodgson for new contract|
|Spain not as aggressive as 2012, claims Ancelotti|
|Ronaldo and Messi need each other – Ancelotti|
|Juve on the same level as Madrid and Barcelona - Dybala|
|Fabregas: Conte´s Italy will be tough|
|Argentina v Chile: New year, same Copa finalists|
|Ronaldo ´cannot be the whole of Portugal´ - Shilton|
|Messi: Neymar is an amazing person|
|Pekerman keen to finish Copa on high note|
|Rakitic: Ronaldo won´t sleep easily|
|Messi: Now is not a time to give nothing|
|Courtois expects to leave Chelsea in future|
|Less rest no problem for Portugal - Joao Mario|
|Euro 2016 Diary: Benteke rap and Nelly the elephant|