A Lionel Messi-inspired Barcelona booked their place in the Champions League knockout stages on Wednesday by crushing a desperate Borussia Dortmund 3-1, while RB Leipzig made the last 16 for the first time with an incredible stoppage time comeback. Lucien Favre’s position as Dortmund coach looks increasingly in peril following the thumping at the Camp Nou, orchestrated by a sensational Messi, that ensured Barca’s progress to the last 16 as Group F winners and leaves the Germans in danger of not qualifying.

The Argentine scored one and set up the other two for Luis Suarez and Antoine Griezmann to inflict a punishing defeat on Dortmund and move up to 11 points, four ahead of the Germans and Inter Milan, who won 3-1 at Slavia Prague.

“He (Messi) was incredible,” said Barcelona coach Ernesto Valverde. “It’s all about what he does and when he does it. It was a performance to put us through.”

Messi got the ball rolling with a neat pass which allowed Suarez to open the scoring in the 29th minute, before the Uruguayan returned the favour four minutes later to lay on Messi for his 613th Barca goal on his 700th appearance.

Messi, who has scored 10 times in his last nine games, was also at the heart of the goal which extinguished Dortmund’s hopes of a result in the 67th minute, slipping a wonderful through ball for Griezmann that the Frenchman could happily stroke first time past Roman Burki.

Dortmund slip down to third behind Antonio Conte’s Inter side, who roared to a fine win which keeps alive their hopes of a place in the next round.

Romelu Lukaku’s first Champions League goal for Inter and a Lautaro Martinez double saw off a spirited Slavia side that had levelled in the 37th minute through a VAR-awarded Tomas Soucek penalty after Lukaku thought he had doubled his side’s lead.

Lukaku had another strike ruled out for offside by VAR in the dying moments, but it made no difference to the result and now a win over Barca at the San Siro next month will guarantee them a place in the last 16.

“We’ve given meaning to the match with Barca by winning tonight,” said Conte.

“We are expecting a tough, great match, but we know that we can count on 80,000 people who will come to the stadium to push us on.”