Porto comfortably beat Marseille 2-0 away on Wednesday to move to the brink of qualifying for the Champions League knockout phase.
Zaidu Sanusi's goal and Sergio Oliveira's penalty put Porto on nine points from four games in Group C while Marseille, who became the first team to lose 13 straight games in the competition since it was launched in 1992-93, were eliminated with zero points.
They were rewarded six minutes from the break when Sanusi netted from the rebound after his first attempt had been saved by goalkeeper Steve Mandanda.
Marseille were thrown a lifeline when Grujic was sent off for a second bookable offence, but they quickly wasted their chance.
Balerdi soon received a second yellow card for bringing down Marega, and Oliveira doubled Porto's advantage by converting the resulting penalty.