Dunfermline scored their first away goals in the SPL this afternoon and with their goals collected all three points against a Dundee side that will rue missed chances.
With five minutes on the clock a good turn around post by Derek Stillie denied Stephen McNally, whose 15-yard left-foot shot looked netbound.
Neil Barrett headed Stephen Robb's left-wing cross just passed the post on nine minutes.
Dunfermline's first goal attempt came on 13 minutes with Craig Brewster ambitious 30-yard effort was way off target.
Barry Nicholson came close for the visitors when he almost send a cheeky chip over Derek Soutar from inside the box only for the Dundee keeper to tip it over for a corner.
From the resulting corner the visitors took the lead when Scott Thomson bulleted a header past Soutar to give the visitors the lead against the run of play with 34 minutes played.
Dunfermline extended their lead four minutes after the break when Nicholson braced on to Simon Donnelly's pass down the right before crossing low into the six-yard area, where Derek Young was on hand to poke the ball into the net from from yards.
Dundee got themselves back into the game on 53mins when Robb's cross from the left was met by the head of Iain Anderson who directed the ball passed Stillie from close range.
Billy Mehmet should have increased the visitors lead on 70 minutes but from three yards out could only direct the ball into the arms of Soutar.
With four minutes remaining Dundee defender Bobby Mann saw his powerful header from Robb's cross clear off the line by Thomson as the home team went in search of a last gasp equaliser.