Bayern Munich defeated Cologne to surpass Borussia Dortmund on the decisive final day, winning their 11th straight Bundesliga championship.
Dortmund would have won the championship if they had defeated Mainz, but a 2-2 draw gave Bayern the advantage.
The winning goal by Jamal Musiala in the 89th minute gave them the edge.
Kingsley Coman’s earlier goal had been cancelled out by a Cologne penalty, but Musiala enraged the away supporters.
Despite coming back from a 2-0 deficit at halftime, Dortmund’s players and supporters were despondent. Sebastian Haller’s first-half penalty attempt was saved.
With only nine minutes left, Dejan Ljubicic of Cologne equalized from the spot to appear as though Bayern had lost their chance.
But Musiala curled in at the last to win.
Bayern beat Dortmund to the title on goal difference, with both sides ending on 71 points.
It marked a successful end to the season for boss Thomas Tuchel, who replaced Julian Nagelsmann in March.
Minutes after the final whistle, Bayern announced the dismissals of chief executive officer Oliver Kahn and sporting director Hasan Salihamidzic, who won 14 titles between them as Bayern players.