Sheffield Eagles soared to their eighth away win of the season when becoming only the second team to win at the Keepmoat Stadium this season.
Doncaster had looked to be on course for their first double over their derby rivals in over a decade with two quickly-taken tries after the break to lead 22-12.
But Eagles hit back with three unanswered tries to condemn the Dons to back-to-back defeats and effectively dash their hopes of finishing any higher than their current fourth place.
The Dons were a man down after just three minutes, full-back Dave Scott being sin-binned for holding centre Etu Uaisela down in the tackle after Menzie Yere had made a strong break.
Eagles quickly cashed in, Uaisela strolling over for try converted by Dominic Brambani after the ball had been fanned out to the right.
There was a let-off for Dons when Uaisele failed to ground the ball over the line.
The home side opened their account with an 11th minute penalty by Stu Sanderson.
No sooner had Scott returned to the fray than Dons player-coach Paul Cooke was sin-binned for kicking the ball away.
Hard-working prop Craig Robinson put his side level on 15 minutes after forcing his way over from close range. Sanderson tagged on the extras to edge the Dons into an 8-6 lead.
The winger also hit the target with a penalty three minutes later, making it 10-6.
No sooner were the Dons back up to strength than Eagles regained the lead with a 24th minute converted try by Matt Garside.
Quentin Laulu-Togagae was recalled for a forward pass as he raced towards the line.
Eagles made the early running after the break and but for a dropped pass would more than likely added to their tally.
The Dons’ first raid of the half saw winger Nev Morrison cut inside Laulu-Togagae from Liam Welham’s pass and touch down near enough for Sanderson to add the extras.
The Dons were in again on 49 minutes, loose-forward Steve Snitch touching down for another converted try after prop Mark Castle had been held up over the line.
Eagles looked dangerous with ball in hand out wide on several occasions without gaining any reward.
They finally put points on the board on the hour, former Dons half-back Kyle Briggs breaking well before sending the supporting Laula-Togagae over under the posts. Brambani’s conversion cut the deficit to just four points.
Eagles drew level on 70 minutes when Yere latched on to a kick by Briggs which the Doncaster defence failed to deal with close to the line.
Eagles’ top scorer Scott Turner dived over in the corner on 74 minutes to give his side a narrow lead they successfully defended.