A last-minute goal from Serge Gnabry secured Bayern Munich a hard-fought 3-2 Bundesliga win against VfL Wolfsburg on Sunday and gave new coach Vincent Kompany a winning start.
Wolfsburg started well but it was the visitors who created the better chances in the first half, taking the lead after a great run from Frenchman Sacha Boey on the right set up Jamal Musiala for an easy finish.
Bayern started the second half poorly, however, conceding a penalty when Boey brought down Tiago Tomas and Lovro Majer made no mistake from the spot.
Wolfsburg created all kinds of problems for the visiting defence and in the 55th minute Patrick Wimmer laid off the ball to Majer, who fired home his second goal.
Winger Jakub Kaminski's own goal levelled the scores for Bayern before Gnabry, assisted by Harry Kane, headed in from the corner in the 82nd minute to secure all three points for the Bavarians.
With Kane and new signing Michael Olise looking lively and frequently finding promising positions, Bayern created a number of other chances but Wolfsburg goalkeeper Kamil Grabara made some brilliant saves to deny the duo.
Thomas Müller, who equalled a club record with his 709th competitive appearance for Bayern, breathed life into his side after coming on as a 65th-minute substitute and was instrumental in the victory.
The record German champions, who were eclipsed last season by Bayer Leverkusen, appointed former Burnley manager Kompany to succeed Thomas Tuchel after their disappointing third-place finish last season.