Substitute Costas Mitroglou fired Olympiakos to a 2-1 victory over Arsenal in the Champions League on Tuesday, as the Greek champions came from behind with two goals in nine minutes.
The London side took the lead against the flow of play in the 38th minute with Tomas Rosicky, set up by Gervinho, who switched to the right, outran two defenders and skillfully swung the ball back.
Olympiakos dropped back despite having the early initiative, helped by Algerian duo Djamel Abdoun and Rafik Djebbour, who missed some early chances.
But Yiannis Maniatis leveled in the 64th, pouncing on a defensive error when Aaron Ramsey foolishly chested down the ball.
Mitroglou scored the winner in the 73rd, powering the ball past Arsenal goalkeeper Wojciech Szczesny from outside the area, just a minute after coming on.
Arsenal coach Arsene Wenger, whose team had already qualified from Group B, marked his 150th Champions League match.
He travelled to Greece without several key players, including Theo Walcott and Lukas Podolski, before the match against West Bromwich Albion in the Premier League on Saturday.
The Greeks were already destined for the Europa League.
"It was a great night for us. It's a shame we were out of the Champions League, the way we played. We fought hard and came from behind,'' Olympiakos defender Costas Manolas said.
Schalke clinched top spot in Group B of the Champions League ahead of Arsenal after withstanding strong pressure in the second half to earn a 1-1 draw at French champions Montpellier.
Schalke center back Benedikt Hoewedes put the visitors ahead in the 56th minute with a diving header after Christoph Metzelder had nodded Lewis Holtby's free kick back across goal.
Montpellier equalised three minutes later when striker Emanuel Herrera scored at the second attempt after his header had been saved by goalkeeper Timo Hildebrand.
Hildebrand made two excellent saves to deny Herrera as Montpellier pushed forward in the closing stages.
City slump out
Borussia Dortmund defeated Manchester City 1-0, ensuring the English club missed out on Europa League football.
Also in Group D, Cristiano Ronaldo opened the scoring as Real Madrid eased to a 4-1 home victory over Ajax.
Already through to the knockout stages, Madrid took the lead in the 13th minute when Luka Modric won the ball in midfield and passed to Karim Benzema, who crossed for Ronaldo to hit his sixth goal of the competition this season.
Jose Callejon doubled Madrid's lead by beating the offside trap, deftly controlling Modric's pinpoint long pass and firing in off the post in the 28th minute.
Kaka added a third in the 49th before Derk Boerrigter pulled a goal back for Ajax and Callejon scored his second goal of the night in the 88th.
The only consolation for Ajax was a place in the Europa League.
Paris Saint-Germain bounced back from a run of poor domestic form to beat FC Porto 2-1 and seal top spot in Group A.
In a closely contested match, Brazil center half Thiago Silva headed PSG in front in the 29th minute, only for Colombia striker Jackson Martinez to equalise four minutes later.
It was another South American, Argentina winger Ezequiel Lavezzi, who scored PSG's winning goal in the 61st.
The win will boost PSG's morale and life some pressure off coach Carlo Ancelotti following three losses in the past five league games and last week's elimination from the League Cup quarterfinals.
PSG top the group with 15 points. Porto are next with 13, while Dynamo Kiev finished third to reach the Europa League with a 1-1 draw at Dinamo Zagreb.
Zenit St. Petersburg beat AC Milan 1-0 to qualify for the Europa League.
Milan, who had already qualified for the knockout stage, dominated the game but Danny scored the only goal in the 35th minute to ensure the Russian side finished third in Group C.
Malaga had already topped the group with 12 points after a 2-2 draw with bottom-placed Anderlecht.