The 2007 Scottish Challenge Cup final was an association football match between Dunfermline Athletic and St Johnstone, held on 25 November 2007 at Dens Park in Dundee.
Dunfermline Athletic and Partick Thistle received random byes into the second round, at which stage the regional format ended and all remaining teams entered the same draw.
[5] St Johnstone entered the north/east section of the first round draw and were paired with Second Division club Raith Rovers away from home at Stark's Park.
The score stayed 1–1 for the 30 minutes of extra time so the winner was decided by a penalty shoot-out, which St Johnstone won 5–4 to progress to the second round.
[8] In the second half, Calum Smith pulled a goal back for Brechin City in the 57th minute to make it 4–1 which was how the score remained and St Johnstone progressed to the semi-finals.
In the second half, St Johnstone scored two more goals from Peter MacDonald and Rocco Quinn to win 3–1 and advance to the final for the first time since losing in 1996 to Stranraer.
[15] St Johnstone contested four matches before the final; one at home at McDiarmid Park and the other three away, scoring ten goals, conceding three and keeping only one clean sheet.
[20] In the 19th minute, however, St Johnstone did score their second goal when Peter MacDonald struck a left-footed volley from 12 yards out which Dunfermline's goalkeeper Gallacher failed to stop.
St Johnstone's early dominance coupled with Dunfermline's poor defending resulted in St Johnstone scoring a third goal after only 30 minutes; forward Andy Jackson passed the ball to Derek McInnes who then played the ball to Deuchar who moved past defender Sol Bamba in the penalty area and scored past the opposing goalkeeper from eight yards out to make it 3–0.
Four minutes after the third goal, Dunfermline manager Stephen Kenny made the first substitution of the match, replacing defender Calum Woods with Darren Young.
[20] In the 59th minute, Dunfermline defender Danny Murphy was the first player to be cautioned by the referee, receiving a yellow card for bringing Quinn to the ground whilst tackling for the ball.
[20] In the 64th minute, Dunfermline made their second substitution; Michael McGlinchey was replaced by Jim Hamilton and he had an almost immediate impact on the match, earning a penalty kick after being pushed by Anderson.