Hamburg have extended the contract of coach Markus Gisdol by two years, tying him to the club till June 2019.
Gisdol succeeded Bruno Labbadia at HSV in late September with the club having picked up just a point from their opening five games of the season.
Gisdol secured just a further point from his first five matches in charge, but has picked 25 points in 15 games, including his and HSV's maiden win of the season on Matchday 13, to give the Bundesliga Dino hope of extending their unbroken stay in the top flight.
"In the current situation, we still have to remain focused and put everything into our sporting goals - we have a great goal in mind," Gisdol, whose side are currently two points from safety in 16th, the relegation/promotion play-off place.
Watch: Hamburg and Gisdol down Darmstadt for first win
"However, I am delighted the club has approached me, would like stability and continuity, and that we will continue our collaboration beyond this season."
The backroom staff of the 47-year-old, who was Hoffenheim coach between summer 2013 and October 2015, also saw their contracts extended.
"We're very happy that we will continue to work with the current coaching staff," HSV sporting director Jens Todt said. "In the coming years, we are determined to continue along the path we have started out on."