Match ends, Olympiakos 3, RSC Anderlecht 1.
Olympiakos missed two penalties against eight-man Anderlecht but still won to qualify for the last 16 of the Champions League.
Javier Saviola scored twice before Alejandro Dominguez converted a third second-half penalty in injury time.
Defenders Cheikou Kouyate and Fabrice N'Sakala were both sent off for two bookable offences.
Goalkeeper Silvio Proto was then dismissed for bringing down Vladimir Weiss for the third penalty.
Anderlecht, who have failed to win in this season's competition, equalised through Sacha Kljestan, but then had Kouyate was sent off four minutes into the second half, having been shown a second yellow card for a handball in the area.
Saviola saw the resulting penalty saved before he added a second goal from close-range.
Weiss also missed from the spot after he was bought down by N'Sakala, who was booked for the foul.
The visitors were down to nine men with just two minutes to go when the Frenchman was shown his second yellow card before Proto followed in injury time.
Striker Aleksandar Mitrovic took over in goal, but was unable to stop Dominguez adding a third goal from the penalty spot.
Olympiakos needed to match Benfica's result against Paris Saint-Germain - a 2-1 home win - to make certain of qualification and they went through with the French Group C winners.
- 16Jiménez Gago
- 5MachadoSubstituted forWeissat 53'minutes
- 9SaviolaSubstituted forDomínguezat 61'minutes
- 19FusterBooked at 52minsSubstituted forNdingaat 89'minutes
- 1ProtoBooked at 90mins
- 39Vanden BorreSubstituted forAcheampongat 72'minutes
- 2N'SakalaBooked at 88mins
- 8MilivojevicBooked at 21minsSubstituted forNuytinckat 53'minutes
- 16KouyatéBooked at 49mins
- 22Mbemba Mangulu
- 19KljestanBooked at 65mins
- 45MitrovicBooked at 65mins
- 10PraetSubstituted forTielemansat 83'minutes
- 6de Zeeuw
- Wolfgang Stark
- Shots on Target
Second Half ends, Olympiakos 3, RSC Anderlecht 1.
Goal! Olympiakos 3, RSC Anderlecht 1. Alejandro Domínguez (Olympiakos) converts the penalty with a right footed shot to the bottom left corner.
Silvio Proto (RSC Anderlecht) is shown the red card.
Penalty Olympiakos. Vladimir Weiss draws a foul in the penalty area.
Penalty conceded by Silvio Proto (RSC Anderlecht) after a foul in the penalty area.
Attempt blocked. Jose Holebas (Olympiakos) right footed shot from outside the box is blocked. Assisted by Delvin Ndinga.
Foul by Dimitrios Siovas (Olympiakos).
Frank Acheampong (RSC Anderlecht) wins a free kick on the right wing.
Alejandro Domínguez (Olympiakos) wins a free kick on the left wing.
Foul by Youri Tielemans (RSC Anderlecht).
Attempt blocked. Alejandro Domínguez (Olympiakos) right footed shot from outside the box is blocked.
Substitution, Olympiakos. Delvin Ndinga replaces David Fuster.
Second yellow card to Fabrice N'Sakala (RSC Anderlecht) for a bad foul.
Vladimir Weiss (Olympiakos) wins a free kick in the attacking half.
Foul by Fabrice N'Sakala (RSC Anderlecht).
Attempt missed. David Fuster (Olympiakos) left footed shot from outside the box is just a bit too high. Assisted by Joel Campbell.
Substitution, RSC Anderlecht. Youri Tielemans replaces Dennis Praet.
Kostas Manolas (Olympiakos) wins a free kick in the defensive half.
Foul by Dennis Praet (RSC Anderlecht).