the greek club were on course to join the group f winners in the last 16 before events in dortmund consigned them to third place.
olympiacos fc produced a stirring display to defeat group f winners arsenal 3-1 but bowed out of the uefa champions league in dramatic fashion due to events elsewhere.
two goals up at half-time through rafik djebbour and david fuster, the greek side were pegged back by yossi benayoun's splendid volley before re-establishing their two-goal cushion through françois modesto in the final minute.
with maximum points and a place in the last 16 alongside arsenal imminent, the celebrations were abruptly halted as news filtered through that olympique de marseille had scored twice late on to win 3-2 at borussia dortmund, snatch second place and leave ernesto valverde's side in the uefa europa league
arsène wenger was presented with a plaque by the olympiacos president beforehand to mark his 200th match in the charge in the competition. his players almost delivered an early present too as, in the eighth minute, marouane chamakh surged down the right and crossed for andrey arshavin whose low shot was saved by balázs megyeri.
chamakh and emmanuel frimpong then passed up similar opportunities, leaving djebbour to break the deadlock in the 16th minute. the algerian international latched on to a ricochet off sébastien squillaci following fuster's pass and rounded arsenal goalkeeper Łukasz fabiański before smartly slotting into the empty net with his left foot as the angle narrowed.
roared on by a raucous home crowd, kevin mirallas flashed a shot just wide after a miscued clearance from fabiański before the injured arsenal no1 was replaced by vito mannone after colliding with djebbour. the substitute's first real involvement ended up with him picking the ball out of the net.
mannone rushed out to make a clearing header and only found fuster who sent a first-time lob into the net despite the italian's efforts to keep it out with his raised left foot. the red and whites were full of confidence as the second half began, olof mellberg heading wide and mirallas finding the side netting, only to have that belief knocked by a fine arsenal goal.
ignasi miquel, on for the injured andré santos, sent in a cross which chamakh knocked down to benayoun. the danger was minimal but the midfielder finished emphatically to register his first uefa champions league goal for almost two years when he wore the colours of liverpool fc.
olympiacos were denied qualification by the anfield club in dramatic fashion in 2004/05, yet the chances of another heart-breaking elimination appeared distant as modesto tapped in the rebound after mellberg headed against a post. marseille, 2-1 down at that stage, changed that with two late goals.