Dundee came from behind to secure a dramatic cinch Premiership victory over St Johnstone at Dens Park.
Saints had stormed into an early lead thanks to a Matt Smith goal but the Dark Blues fought back after the break with a controversial Luke McCowan penalty and what proved to be the winner in the closing stages from Jordan McGhee.
The result leaves Dundee in sixth place, three points ahead of Hibernian, while St Johnstone remain 10th.
The hosts had the first shot of the game in the fourth minute but Lyall Cameron’s strike was deflected wide for a corner with the same player not far away with a curling effort shortly afterwards.
However, it was Saints who made the early breakthrough in the ninth minute.
Graham Carey found Smith just inside the Dundee box and the Wales international made no mistake with a clinical low strike that flew past home goalkeeper Trevor Carson and into the bottom corner of the net.
The home side looked to hit straight back with midfielder Cameron trying his luck again but St Johnstone goalkeeper Dimitar Mitov dived to his right to snuff out the danger.
The keeper then had a big scare when he attempted to clear but only succeeded in hitting Amadou Bakayoko, with the ball cannoning back into the side-netting.
Dundee came close again when a shot inside the box from skipper Joe Shaughnessy took a nick and trundled just past Mitov’s right-hand post.
The hosts continued to look dangerous and came close to equalising again when an Aaron Donnelly header from an Owen Beck corner was cleared off his own line by Carey.
Carson was called into action in the 33rd minute when a Shaughnessy header fell to Benjamin Kimpioka who unleashed a fierce drive with the keeper producing an outstanding acrobatic save to tip the ball over his crossbar.
Saints struggled to create clear-cut chances after the break but they burst into life on the hour, with Adama Sidibeh producing a bicycle kick that Carson tipped over and then Andy Considine saw a header clatter off the home bar.
READ MORE: Scottish Cup quarter-final draw in full as last eight ties are revealed
However, Dundee finally equalised in the 75th minute.
Referee David Munro was called to the pitchside monitor by the VAR to review an incident in the Saints box involving contact between Liam Gordon and Bakayoko, with the official awarding a penalty to the home side.
McCowan stepped up and fired the spot-kick into the back of the net off the inside of a post.
Dundee then completed their dramatic comeback in the 89th minute when Beck swung a cross into the Saints box with McGhee sending a superb glancing header past Mitov.
The game ended on a sour note for the hosts when substitute Michael Mellon had to be stretchered off prompting 17 minutes of stoppage time.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here