Ben Whiteman's late penalty secured a thrilling victory for Doncaster in the South Yorkshire derby as they came from behind to beat Rotherham 2-1 at the Keepmoat Stadium.
On-loan Jake Hastie had sent the Millers into the break a goal up but veteran James Coppinger equalised before skipper Whiteman struck from 12 yards two minutes from time as Darren Moore's men turned the match on its head.
After a cagey opening, littered with niggly fouls, Millers defender Michael Ihiekwe narrowly headed Ben Wiles' corner wide, but they were ahead after 37 minutes.
Kazaiah Sterling gave away a silly foul on Wiles 25 yards from goal and on-loan Hastie whipped in a left-footed free-kick that sailed over everyone and beat the unsighted Ian Lawlor in the Rovers goal.
Just after the break, former Miller Jon Taylor headed Alfie May's cross over before Ben Sheaf's volley from just outside the box was brilliantly saved by Lewis Price.
This spell of pressure led to the 66th-minute equaliser, with sub Niall Ennis' great work by the byline resulting in a cross that was met first time by Coppinger, who put enough on his shot to beat Price.
Taylor then tested Price from distance, with the Rotherham keeper also saving low from Reece James.
Ennis brought another save out of Price before the on-loan sub won the penalty that secured the three points after he was hauled to the ground by Ihiekwe.
Whiteman confidently sent Price the wrong way from the spot as Doncaster claimed the bragging rights.