Kaiserslautern claimed their first win in 21 games after seeing off 10-man Hertha Berlin this afternoon - but it was not enough to save them from relegation.
Lautern went 2-0 up through goals from Oliver Kirch in the 27th minute and Andrew Wooten 11 minutes later. Hertha pulled a goal back on the hour mark through Pieter Niemeyer, who was then sent-off 13 minutes from time after collecting a second booking.
Third-bottom Cologne's draw with Stuttgart ultimately proved decisive, though, with Kaiserslautern seven points from safety and facing 2.Bundesliga football next season.
Hertha may well join them. They are two points behind Cologne with two games remaining.
The hosts had the first chance of the game but Lautern keeper Tobias Sippel made a fine save from Niemeyer's header after 15 minutes
But it was the visitors who took the lead 12 minutes later as Wooten played the ball forward to Olcay Sahan who played it onto Kirch and the midfielder turned and beat goalkeeper Thomas Kraft from 10 yards out.
Lautern doubled their advantage in the 38th minute as Konstantinos Fortounis danced through the Hertha defence and passed to Wooten, who fired past Kraft to make it 2-0.
Lautern nearly added a third four minutes later but Mathias Abel's shot after an Alexander Bugera free-kick went just wide of goal.
Hertha coach Otto Rehhagel made two changes at the break with Fanol Perdedaj and Patrick Ebert coming for Adrian Ramos and Tunay Torun.
And the hosts halved the deficit on the hour mark as Ebert's corner found Niemeyer for a header from eight yards out.
Kraft kept his team in the game with a superb reflex save from Sahan in the 76th minute after a counter attack.
But the hosts went a man down a minute later as Niemeyer was sent-off with his second booking in two minutes.
Kaiserslautern had numerous chances to kill the game late on but could not grab a third.