Benfica kept alive their chances of qualifying for the UEFA Champions League knockout phase as Rodrigo secured a 3-2 win in stoppage time.
Olympiacos went into the Group B clash three points ahead of third-placed Benfica, but the Greeks' late defeat at Paris Saint-Germain allowed the Portuguese side to move level with them.
Jorge Jesus' men trailled to Chancel Mbemba's 18th-minute opener but hit back through Nemanja Matic 11 minutes before the break, with Mbemba's own goal handing the visitors the advantage early in the second half.
Massimo Bruno struck with an excellent finish 14 minutes from time to move Anderlecht level, only for substitute Rodrigo to provide a dramatic twist with a last-gasp winner.
After a quiet start, the first chance fell to Anderlecht in the 17th minute. Aleksandar Mitrovic cut a pass back to the edge of the area for Bruno, but Artur tipped it over the bar.
The goalkeeper could do nothing to prevent his side falling behind a minute later, though.
Fabrice N'Sakala lofted a pass into the area from deep for Mbemba and after his first touch ricocheted back off Luisao, the Congolese defender slotted under Artur.
Mitrovic saw a goal disallowed for offside just before the half-hour mark and Benfica made the most of it four minutes later.
Matic nodded Enzo Perez's left-wing free-kick past Silvio Proto, but Cheikhou Kouyate nearly restored the hosts' lead with the next attack as he headed a cross narrowly over.
Benfica needed only seven minutes to take the lead in the second half. Nico Gaitan latched on to a throughball in the area and after producing a clever turn, he hit a low shot that was deflected in by Mbemba.
After taking the lead, Jesus' side became more inclined to hit Anderlecht on the counter-attack and Lima went close to scoring a third as he stroked a shot just over with the outside of his foot following Perez's cutback.
Bruno grabbed the equaliser from a narrow angle in the 76th minute, but Rodrigo had the last word, applying a cool finish after racing clear.
Benfica now await the visit of PSG in their final, decisive group game.
|Barkley ´obsessed´ with becoming world-class at Chelsea|
|Conte defends Chelsea amid surprise Carroll & Crouch links|
|Guardiola wants ´three or four´ signings but rules out Sanchez alternative|
|Atlanta United wrap up Barco signing for MLS record fee|
|Derby County 0 Bristol City 0: Penalty controversy in goalless draw|
|Hertha Berlin 1 Borussia Dortmund 1: Kagawa equalises in Aubameyang´s absence|
|Brighton break transfer record for Locadia|
|Dortmund still waiting on ´concrete´ offer for Aubameyang|
|Can will ´give everything´ at Liverpool despite Juventus talks|
|One Direction star trained with Mourinho´s Chelsea|
|Goretzka asks Schalke fans to not turn on him after agreeing Bayern deal|
|Van Persie secures return to Feyenoord|
|Conte should replace Wenger at Arsenal, claims Carragher|
|Kimmich named Germany’s 2017 Player of the Year|
|Moyes denies scouting Batshuayi and deals Chelsea blow with Carroll injury|
|No one like Ronaldinho until Messi - Guardiola lavishes praise on Brazil great|
|Simeone shrugs off mentality concerns at Atletico Madrid|
|Going for gold? Neymar meets Beckham in matching jackets|
|You think I change my mind that quick? – Klopp faithful to No.1 Karius|
|Conte backs Morata to overcome disciplinary concerns|
|Lloris a doubt for Southampton game, confirms Pochettino|
|Klopp doubts Alexis Sanchez tug-of-war decided by money|
|Conte admits Pedro dived|
|Valencia tie down Torres amid Real Madrid, Barcelona reports|
|Congratulations! Guardiola offers well wishes to United-bound Sanchez|
|Pele pulls out of London event amid conflicting health reports|
|Conte would be ´happy´ for transfer help|
|Sanchez to United not done at all, insists Mourinho|
|Emery refuses to indulge Neymar-Cavani penalty debate|
|Goretzka chose Bayern over England, Spain and Italy – Heynckes|
|I would reject such players – Heynckes slams ´selfish´ Aubameyang|
|Western Sydney Wanderers 0 Melbourne Victory 3: Barbarouses extends purple patch|
|Conte likes Dzeko but Chelsea have made no offer, says agent|
|Goretzka´s Bayern move good for Bundesliga, suggests Rummenigge|
|Walcott left Arsenal with his things in bin bags|
|Schalke confirm Goretzka will join Bayern|
|Sergi Roberto renews Barca deal until 2022|
|Fernandinho seals extended Manchester City contract|
|Ceballos knee knock to be assessed after Real Madrid Copa win|
|Hamsik has no doubts over Napoli future|
|Corchia determined to repay Montella´s faith at Sevilla|
|Arsenal or Manchester United – who wins from the Sanchez-Mkhitaryan deal?|
|I would love to coach PSG – Mancini|
|Merson: Mkhitaryan will be a sensation at Arsenal|
|Wins over substance for Varane and Real Madrid|
|Arsenal´s Giroud the answer for Chelsea, says Parlour|
|Wenger: Sanchez exit won´t hurt like Van Persie|
|Zidane hopes late Leganes win is turning point for Real Madrid|
|De Gea happy to delay Man Utd contract talks|
|Leganes 0 Real Madrid 1: Asensio´s late goal lifts pressure on Zidane in Copa quarter-final|
|Toulalan follows Gourvennec out of Bordeaux|
|Dortmund´s Durm suffers torn ankle ligaments|
|Chelsea send Nathan to Belenenses on loan|
|Chelsea in talks over deal for Roma full-back Emerson|
|Gravel for breakfast but no worms on Dyche´s menu|
|Dybala is no Messi - Laudrup thinks comparisons are unfair|
|Dortmund leave Aubameyang out amid Arsenal links|
|Koulibaly would stay at Napoli ´forever´|
|Neymar´s PSG contract has no release clause, lawyer claims|
|Robben relaxed over Bayern contract talks as other clubs circle|
|Henderson returns to Liverpool training|
|Football´s biggest release clauses - Pique joins Messi, Ronaldo and LaLiga´s big boys|
|No offers for Evans yet, says West Brom boss Pardew|
|Stafylidis seals Stoke switch|
|Worry about your own team - Dortmund slam Wenger´s Aubameyang pursuit|
|Praet denies agreeing deal to join Juventus|
|No BBC for Real Madrid´s Leganes clash|
|Stoke close to Stafylidis signing|
|Brisbane Roar 3 Perth Glory 2: Holman settles five-goal thriller|
|Gourvennec leaves Bordeaux after seventh defeat in eight games|
|Pique agrees new long-term Barcelona contract|
|Wenger rules out Ozil sale as talks continue over Wilshere deal|
|Sanchez-Mkhitaryan deal close, says Wenger|
|Meunier blasts ´disgraceful´ PSG fans after Neymar boos|
|Pique demands better at Camp Nou after Espanyol ´insults´|
|Schweinsteiger re-signs with Chicago Fire for 2018|
|Juve trying everything to sign Can, says Marotta|
|Rooney convinced me to join Everton – Walcott|
|Simeone: Sevilla deserved their win|
|Conte calls for VAR improvements|
|Neymar not angered by PSG whistles - Silva|
|FA Cup Review: Wigan dump Bournemouth out, nine-man Chelsea scrape through|
|Valverde rues Barca profligacy in Espanyol defeat|