Dramatic late winner saves Union from drop
Janik Haberer scored a stoppage-time winner as Union Berlin beat Freiburg 2-1 to secure its Bundesliga safety, despite missing two penalties on a dramatic final match of the season.
Marco Grote's side, which participated in the UEFA Champions League during the first half of this season under former coach Urs Fischer, occupied the relegation play-off spot heading into the final day of the campaign.
Just three points clear of 17th-place Cologne, which travelled to Heidenheim, Union welcomed Freiburg to Stadion An der Alten Forsterei, knowing a defeat could spell the end of a five-year spell in Germany's top flight.
Mainz, two points clear of Union in 15th, moved out of the relegation picture with a commanding 3-1 win at Wolfsburg.
That meant one of Union, Bochum or Koln would join already relegated Darmstadt in the second tier. One would have to settle for a play-off place, while the other would survive.
Cologne went down 4-1 at Heidenheim, while Bochum's defeat at Werder Bremen by the same scoreline meant Union could leapfrog it with victory over Freiburg.
The hosts, for whom Josip Juranovic missed a first-half penalty, broke the deadlock in the 68th minute through Benedict Hollerbach.
However, they looked set for a relegation play-off when Ritsu Doan equalised for the visitors with five minutes remaining, before substitute Kevin Volland struck the post with his spot-kick early in stoppage-time.
Nevertheless, there was to be a dramatic late twist as Haberer struck in the 92nd minute to catapult Union out of the bottom three and to safety in 15th place.