Although Bayern Munich had long since wrapped up the title - and Schalke second spot for that matter - there were all manner of possible final-day permutations involving Borussia Dortmund, Hoffenheim, Bayer Leverkusen and RB Leipzig in the race for the European places. At the other end of the table Freiburg, Wolfsburg and Hamburg were battling to stay in the top flight.
The title had long since been sealed, but the champions were beaten 4-1 by Stuttgart at the Allianz Arena on the final day, a result that had ramifications further down the standings. Not that it stopped the Bavarians partying in style, though.
Watch: Check out Bayern's title celebrations under the Munich sunshine!
The Royal Blues had also wrapped up second place - and a return to the UEFA Champions League for the first time since 2015 - prior to the final day, but a 1-0 final-day win at home against Eintracht Frankfurt damaged the Eagles' European hopes.
So here's where it started to get a little bit complicated. Hoffenheim knew the equation going into the final day: beat Borussia Dortmund by two goals to finish third. Julian Nagelsmann's side duly did so, running out 3-1 winners, and secured a spot in the UEFA Champions League group stages for the first time ever.
Leverkusen needed to better Hoffenheim's result against BVB to finish fourth. Since Nagelsmann's side won 3-1, Bayer required victory by five goals to overturn Hoffenheim's superior goal difference and secure a top-four berth, but only won 3-2 against Hannover. Despite ending level on points with Hoffenheim and Dortmund, Leverkusen finish the season in fifth - and in the UEFA Europa League - due to a worse goal difference (+14).
Stuttgart were the big winners on the final day: Tayfun Korkut's side sensationally emerged 4-1 victors at Bayern. That, combined with Eintracht Frankfurt's and Borussia Mönchengladbach's defeats, meant the Swabians jumped into seventh. VfB will now be praying for Bayern to beat Eintracht in the DFB Cup final: if they do that, Stuttgart enter the Europa League at the second qualifying round stage, and Leipzig go into the group stages. If Frankfurt win, there will be no European football at the Mercedes-Benz Arena next season.
Gladbach lost 2-1 in Hamburg, but even if they had won, they needed both Frankfurt and Stuttgart to drop points to finish seventh.
Cologne were guaranteed to finish bottom, but one automatic relegation position was yet to be confirmed with either Wolfsburg or Hamburg set to join the Billy Goats. Those two and Freiburg were the only teams who could contest the relegation play-off against Holstein Kiel.
Freiburg's win meant Wolfsburg needed to match Hamburg's result to ensure a play-off spot. A 4-1 win for the Wolves against relegated Cologne secured 16th place and a double-header against Holstein Kiel, third in Bundesliga 2.