Jupp Heynckes signed off from Bayern Munich in style as they beat Borussia Monchengladbach 4-3 at Borussia Park on Saturday.
Martin Stranzl, Mike Hanke and Havard Hordtveit netted in the first 11 minutes to give Gladbach a shock lead, with Javi Martinez and Franck Ribery responding for the champions, all before the 20th minute.
Ribery equalised in the second half with a stunning volley before Arjen Robben tapped a winner in to complete a memorable turnaround for the Bundesliga champions.
Chasing a possible top-six finish, Gladbach paired Branimir Hrgota and Hanke in attack, while Bayern stuck with their strongest XI, despite still having the DFB-Pokal and UEFA Champions League finals to play
The hosts snatched a lead in the third minute as Juan Arango's free-kick from the right wing was nodded in by an unmarked Stranzl, who stole past some static Bayern marking to score.
Barely a minute later, the visitors were stunned again as Dante tried to carry the ball out from the back, but presented the ball straight to Hrgota, who slipped a precise through ball into the path of Hanke, who kept his cool to slot past Manuel Neuer.
With just seven minutes on the clock, a third goal went in, and it was a way back for Bayern. Ribery touched the ball into Martinez, the Spaniard racing to the edge of the area before sweeping the ball home.
Less than 10 minutes had gone before Gladbach scored again, this time Arango's magnificent pass released Patrick Hermann on the right flank, with just one defender covering for Bayern, the winger rolled the ball across to the supporting Nordtveit, who tapped past Neuer.
The visitors soon had their second and a way back into the match as Thomas Mueller collected the ball from David Alaba's throw-in and turned the ball to Ribery, who smashed past Marc-Andre ter Stegen at his near post.
Bayern got back on top and had chances to equalise before the break, but Philipp Lahm and Mueller were denied, while Hanke stung the palms of Neuer at the other end with a 25-yard drive.
Heynckes' side were back on level terms eight minutes into the second half in stunning fashion through Ribery. Robben burst down the right before cutting back to Lahm, the skipper's deep cross found the Frenchman on the edge of the box, who lashed a left-footed volley across Ter Stegen and into the corner.
Neuer had to be alert to keep out Arango's swerving 40-yard free-kick and Ter Stegen made a fine reaction stop from Mario Mandzukic's header as both sides sought the lead.
And it was Bayern who got themselves in front for the first time in the 59th minute as Ribery swung a cross over Gladbach's defence from the left to Robben, who side-footed home six yards out.
Ribery had a great chance for a hat-trick after being released by Mueller, rounding Ter Stegen but Stranzl slid in to clear his goalbound effort away for a corner, which saw the ball drop to Bastian Schweinsteiger, whose blast was palmed away.
The 21-year-old was again called into action as Ribery's cross deflected to Mandzukic six yards out but Ter Stegen flicked the Croat's effort away with his right boot.
Bayern cruised through the closing stages to extend their record points total to 91 and give Heynckes the best possible farewell.