St Johnstone's survival hopes suffered a grievous blow after defeat at Motherwell left them six points adrift with four Scottish Premiership games to play.
Simo Valakari's strugglers, who suffered a chastening Scottish Cup semi-final defeat against Celtic last Sunday, led at Fir Park through Makenzie Kirk's early effort.
But Motherwell scored twice inside a minute to establish a lead that they would not relinquish. First Callum Slattery slid in an equaliser before Johnny Koutroumbis' effort was deflected into his own goal by Sven Sprangler.
The reinvigorated hosts added a third shortly after half time, Tom Sparrow volleying home.
And, although the deficit was reduced when substitute Elliot Watt's 25-yard-effort found a way beyond Ellery Balcombe, Motherwell held on to claim all three points and move above Hearts into seventh place.
St Johnstone had started confidently despite their league position and took an early lead when Josh McPake took advantage of slack defending and cut back for Kirk to slam high into the net.
Motherwell changed their system to a 4-2-3-1 and slowly started to take control. That said, it took until the half hour to test Andy Fisher, who looked smart in pushing Harry Paton's effort away.
Shortly after that, Michael Wimmer's side were level with almost a carbon copy of St Johnstone's opener. Tony Watt found himself free and his cut back found Slattery, who passed it low into the net.
Watt was involved almost immediately after the restart, crossing for Koutroumbis to hammer home via a deflection.
There was a renewed vigour about Motherwell in the second half, and they went 3-1 ahead when Sparrow volleyed in after tenacious play from Dom Thompson.
St Johnstone rallied and Watt pulled a goal back with 25 minutes to play. That led to a nervy finale but the visitors were unable to create any clear cut chances and Motherwell held on.