Douglas Hill grabbed the winner in extra-time as Raith came out on top of a seven-goal thriller, beating Airdrie United 4-3 in their Active Nation Scottish Cup third-round clash.
The sides could not be separated in a 2-2 draw first time round, meaning a replay was required between the Irn-Bru Scottish Football League Championship First Division rivals.
The tone for a fine encounter was set in just the third minute, when Ryan Donnelly found Josh Watt, who curled home from just inside the penalty area.
However, Airdrie hit back immediately, Greig Spence firing home and Allan Walker converting a penalty after Nathan Blockley had brought down Simon Mensing.
Yet, just before the interval, Paul Di Giacomo matched that effort from the spot following Laurence Ellis' foul on Donnelly to level matters.
Grant Anderson fired home to put Rovers back in front just after the break, only for Gregor Buchanan's header four minutes from time to ensure an extra 30 minutes.
Yet it was Raith and Hill who were to have the final say as the defender delivered a decisive header to set up a fourth-round clash with Deveronvale.