Robert Lewandowski broke Gerd Muller's long-standing record for goals scored in a single Bundesliga season with a last-gasp effort as Bayern Munich routed Augsburg 5-2 on a day of fond farewells.
The prolific Pole could only watch on as an own goal plus efforts from Serge Gnabry, Joshua Kimmich and Kingsley Coman had the champions flying at half-time of the season finale at the Allianz Arena.
But, after consolations from Andre Hahn and Florian Niederlechner, Lewandowski followed in when Rafal Gikiewicz spilled Leroy Sane's effort to make it 41 top-flight goals for the season with the last kick of the game.
It was a dramatic ending to an emotional outing, which was the last for head coach Hansi Flick and modern-day Bayern greats David Alaba, Jerome Boateng and Javi Martinez.
For a long period of the game, it appeared as though Lewandowski would fall agonisingly short of sitting out in front on his own.
In total he had 10 shots, six of which were on target, in a game that marked the last of Hansi Flick's tenure as Bayern head coach.
But finally, with the last kick of the game, Lewandowski's moment arrived. The prolific Pole reacted fastest when Rafal Gikiewicz could only parry Leroy Sane's effort, and the striker picked up the ball, rounded the keeper and slotted into an unguarded goal.
Lewandowski removed his shirt in joy then shared an emotional embrace with Flick to celebrate a momentous goal.