Dundee made several changes Jordan Marshall, Jordan McGhee, Ben Williamson and Josh Mulligan returned to the starting eleven. They replaced Fin Robertson, Joe Grayson and Lyall Cameron, who were substitutes, and Tyler French who missed out through illness.
Dundee started well and forced six corners in the opening 10-15 minutes as they looked to get the early goal, but after 18 minutes Josh Mulligan was shown the red card for a foul. It did not look that bad but rumours of a elbow was used.
Both teams had chances and Ayr missed one right on half time, Dundee would be happy to get to half time with the score 0-0.
Second half and Rudden had a chance but put his effort wide of the goal, Dundee were playing well and controlling the midfield. After 64 minutes and Ayr got a player sent off.
This turned the game and it was 4 minutes later Dundee scored good play from Rudden and his pass let Luke McCowan to run into the box and scored across the keeper with a fine finish.
It gave Dundee a big boost as they looked to get the second vital goal, hard working Zak Rudden was replaced by Cillian Sheridan and soon after Dundee got their second goal. Luke McCowan was fouled and he stepped up to scored a wonderful 30 yard free kick.
It sealed the three points and they seen the game out to go top of the league at Christmas time.
Dundee: Legzdins, Kerr, Sweeney (c), Ashcroft, Marshall (Robertson 87), McMullan (Cameron 90+3), McGhee, Williamson, McCowan, Mulligan, Rudden (Sheridan 74). Unused Subs: Lawlor (gk), Strachan, Osei, Grayson.
Referee: Steven McLean
Att: 2,704