BERLIN — Bayern Munich salvaged a late 2-0 win at Schalke in the Bundesliga on Friday, maintaining new coach Carlo Ancelotti's winning start when it seemed the side was about to drop points.

Minutes after missing an open net from two meters, Robert Lewandowski finally scored in the 81st minute, shooting to the top left corner after being set up by a fine pass from Javi Martinez.

The Poland striker set up substitute Joshua Kimmich to seal the result in injury time, with Ancelotti's other substitutes — Arturo Vidal and Douglas Costa — both involved in the buildup.

"We knew we had to be patient," said Lewandowski, who took his goal-tally to four from two games. "That was a very important win."

Schalke, which was hoping to bounce back from its opening-weekend defeat at Eintracht Frankfurt, had taken the game to the defending champion, snapping at the visitors' heels, winning challenges and forcing mistakes.

"It's bitter for us," said Schalke coach Markus Weinzierl, who added that he was nevertheless encouraged by his side's performance.

Ukraine winger Yevhen Konoplyanka and French midfielder Benjamin Stambouli started for their Schalke debuts, while new signings Nabil Bentaleb and Abdul Rahman Baba also impressed for the home side.

Bayern's 19-year-old Renato Sanches, who helped Portugal win the European Championship, made his Bundesliga debut but the visitors had a familiar name to thank for their second win from two games.

___

SCHALKE 0-2 BAYERN MUNICH

Schalke had the game's first big chance when David Alaba blocked Leon Goretzka's header almost off the line, before Konoplyanka was deflected wide for a corner, and Goretzka went close again.

Lewandowski should have put away Bayern's first big chance minutes later, turning the ball wide after being set up by Thomas Mueller.

But the home side was better and might have gone ahead in the 38th, when Alaba and Manuel Neuer — back at his old club — could only scramble the ball away from the lurking Klaas Jan Huntelaar after Konoplyanka pulled it back thanks to a great run from Baba.

Huntelaar rattled the crossbar early in the second half, when Neuer got a fingertip to the ball.

Ancelotti reacted to Schalke's growing confidence by bringing on Vidal and Costa for Xabi Alonso and Franck Ribery, respectively.

Costa fired over in the 72nd before Lewandowski missed the open net. The Poland striker had no time to react to Alaba's cross and the ball ricocheted over.

Just when it looked like the visitors would have to settle for a point, Lewandowski struck then set up Kimmich to gather all three.