Dundee recorded their first home league win of the season and despite going behind early on they took control and in the end ran out comfortable 3-1 winners.
Kilmarnock made a great start when they took the lead on four minutes. Kris Boyd nipped in behind the Dundee defence and stole the ball from the feet of Brent Sancho before rounding Derek Soutar and firing home from a tight angle.
Craig Dargo saw a good 20-yard volley over the cross bar on 17 minutes.
With 29 minutes played Dundee equalised through left-back Steven Robb.
It was patient build-up from the home team around the Killie box and when Barry Smith found Robb at the left corner of the box the defender fired a cracking left-foot drive low past Alan Combe from 16 yards.
Another good move by Dundee moments later resulted in Smith firing just over the bar from 20 yards.
A long-range effort by Stephen McNally early in the second half was well saved by Combe.
The home team turned the game around when they took a deserved lead on 63 minutes.
A great pass by Iain Anderson sent Steve Lovell through on goal and when his low shot was only parried it broke towards goal where John Sutton made a desperate lunge as Frederic Dindeleux tried to clear, and when the ball ended up in the back of the net the big striker was claiming the last touch.
Four minutes later the visitors almost grabbed the equaliser but Derek Soutar saved Boyd's six-yard header.
Dundee tied up the points with their third goal three minutes from time.
A brilliant crossfield pass by Stephen McNally dropped perfectly for Anderson who was sprinting towards the visitors box and the Dundee midfielder fired low into the net, despite Combe getting a hand to the ball.