Dundee boosted their Scottish Premiership survival hopes with a slender but deserved victory over Hearts in what proved to be Neil Critchley's final game in charge of the Tynecastle club.
Simon Murray's goal, his 21st of the season, pushed Dundee up to 10th in the division and two points clear of Ross County, who lost at Kilmarnock.
And it also spelled the end for Critchley after six months in the job, his Hearts side having been jeered from the pitch at both half time and full time.
On the back of a Scottish Cup semi-final loss last weekend, Hearts created some good first-half chances but looked completely toothless.
Dundee had openings themselves, with Ryan Astley and Seb Palmer-Houlden passing up good opportunities before Murray struck.
A cross from the left fell nicely to the striker and he was able to guide the ball into the back of the net, through the legs of Frankie Kent on the line.
Hearts hit a post through a deflected Cammy Devlin effort, and Elton Kabangu put one straight at the goalkeeper from six yards out when he really should have scored.
They did have the ball in the back of the net in stoppage time, when Alan Forrest turned in at the back post. However, Craig Gordon - up from the back - had fouled Trevor Carson in the build up.
Hearts are now goalless in their past four league games and slip to eighth in the league, just five points above 11th-placed County.