Pierre-Emerick Aubameyang's two goals on the final day of the season saw him beat Robert Lewandowski to finish as the Bundesliga's top scorer.
Long-serving Bayern captain Philipp Lahm put in a typical workmanlike shift in a 4-1 win against Freiburg as he and Xabi Alonso call it quits.
Borussia Dortmund sealed third place in the Bundesliga, and a spot in next season's Champions League group stage, via a 4-3 win over Werder Bremen.
Pierre-Emerick Aubameyang's last-gasp penalty earned Dortmund an automatic place in next season's Champions League.
Bayern Munich gave Philipp Lahm and Xabi Alonso a fitting send-off with a comfortable win over Freiburg.