Substitute Jonson Clarke-Harris made an immediate impact to see Rotherham complete a table-turning comeback for a memorable win over Leeds at the New York Stadium.
Three minutes after entering the fray, record signing Clarke-Harris collected the ball just inside the Leeds half, surged forward and lashed a shot past Marco Silvestri with 65 minutes gone.
After finding themselves largely on the back foot in the early stages, the Millers fell behind to Mirco Antenucci’s 30th minute strike, enough to see Leeds carry a lead into the break.
But Rotherham responded in superb fashion, particularly after the break.
And Alex Revell scored his first goal since the League One play-off final to draw the Millers level with 57 minutes on the clock before Clarke-Harris struck to put the Millers in front.
Antenucci was inches away from putting Leeds in front after eight minutes.
Doncaster-born midfielder Alex Mowatt brilliantly danced into the area and to the byline with Rotherham defenders reluctant to attempt a tackle.
And he found the on-rushing Antenucci with his low pass but the Italian’s first time strike flew just wide of Adam Collin’s near post.
The Millers’ first real chance saw Ryan Hall drill a 25 yard free kick over the bar.
And they could have had a controversial opener on 21 minutes. Leeds defender Jason Pearce was down injured following a clash with Alex Revell but Rotherham played on, breaking through Matt Derbyshire who produced a rather tame shot that proved an easy save from Marco Silvestri.
The breakthrough came on the half hour, with the visitors going ahead.
Souleymane Doukara superbly timed his pass to see Antenucci beat the offside trap to go clear and power a low effort under Collin and into the far corner.
Frecklington drew another simple stop from Silvestri when he ran onto a knockdown from Derbyshire but could only produce a rather tame low strike.
But the Leeds keeper had to be at his best to keep out Alex Revell on 38 minutes.
A superb cross from Ben Pringle found Revell who rose well and sent a header towards the far post only for Silvestri to produce a fine reaching stop to tip the ball wide.
Leeds could have had a second on the stroke of half time but for last-ditch heroics from Joe Skarz.
Antenucci found Doukara who saw the ball taken off his toe with a lunge from Skarz.
Revell struck his first of the campaign after 57 minutes to set up a thrilling conclusion to the derby clash.
Frecklington surged into the area and lashed a high shot which Silvestri palmed away, straight out to Revell who hit the rebound first time past the Italian keeper.
After Revell levelled up, Leeds had the ball in the back of the net only to fall victim to the assistant’s flag.
Doukara hooked a shot past Collin but was clearly offside.
But then Clarke-Harris completed a remarkable comeback for Rotherham with his fine finish.
Another substitute almost made a huge impact in the 70th minute. Leeds debutant Adryan worked space on the edge of the box to shoot towards the near post only to see Collin stretch well to tip the ball out for a corner.
A brilliant low save from Collin kept Leeds out with six minutes to go.
Collin got down low and stretched out a single hand to tip an Antenucci shot from the edge of the area wide of the post.
Millers: Collin, Richardson, Morgan, Arnason, Skarz, Pringle (Smallwood 81), Green, Frecklington, Hall (Taylor 46), Derbyshire (Clarke-Harris 62), Revell. Not used: Loach, Broadfoot, Bowery, Swift.
Leeds: Silvestri, Berardi, Pearce, Bellusci, Warnock, Austin, Bianchi (Morison 89), Mowatt, Cook (Adryan 62), Antenucci, Doukara (Sharp 77). Not used: Taylor, Byram, Cooper, Sloth.
Referee: Keith Stroud (Hampshire)