Dunfermline bounced back from last weekend's heavy reverse to inflict a 3-1 defeat on nine-man rivals Raith.
The sides had gone in level at the break, but Rovers had seen Allan Walker given a straight red for a bad foul on Andrew Barrowman. As the sides came out for the second period, Raith were down to nine as Douglas Hill was sent off in the tunnel at half-time.
Patrick Clarke had headed home Walker's 24th-minute right-wing free-kick to give Raith the lead.
The away side levelled as Stephen Husband drilled in a free-kick from 25 yards.
And Dunfermline took full advantage of the two red cards to score within the first two minutes of the second-half as Joseph Cardle fired into the top corner from 18 yards.
Husband tapped in from close range after good work from Craig Dargo in the 88th minute to secure victory.