Dundee move off the bottom of the table after defeating Rangers at Dens Park.
Both sides made one change from their last match. Josh Meekings replaced the suspended Darren O’Dea – with the Dees captain having been sent off against Kilmarnock last weekend.
Declan John returned to left-back after he missed last weekend’s defeat to Hamilton. Lee Hodson dropped out and had to settle for a place on the bench.
The game started in fiery fashion as Paul McGowan and Jason Holt clashed early on. However, the game quickly calmed down as both sides looked for the opener.
Kenny Miller saw a header saved by Elliot Parish before Meekings blocked a Ryan Jack shot from 20-yards.
Wes Foderingham was forced into action after 18 minutes when he tipped over a Faissal El Bakhtaoui effort from outside the area before Paul McGowan tried to trouble the Englishman.
Sandwiched in between those two efforts was an Alfredo Morelos breakaway chance which saw the Colombian hit the side-netting.
Josh Windass, James Taverner, Daniel Candeias and two Kenny Miller efforts saw Graeme Murty’s side end the half strongly.
Sofien Moussa and Eduardo Herrera both came on before half-time as Dundee striker Marcus Haber and Gers’ forward Morelos picked up knocks which meant they were unable to continue.
Roarie Deacon and Miller had an effort apiece as both sides struggled to dominate at the start of the second half.
Then, however, the home side took the lead from a free-kick. As the set-piece was swung in by Spaniard Aurtenetxe and as it bounced around inside the area, Mark O’Hara prodded the ball home to send the home fans into raptures.
Their joy wasn’t to last for long though as Josh Windass equalised for the Glasgow outfit only four minutes later.
The midfielder took a touch at the edge of the area before firing the ball past former Aston Villa shot-stopper Parish.
The game got stretched with time running out; O’Hara again had an effort before experienced striker Miller dragged a shot wide.
With eleven minutes to go, Neil McCann changed shape by taking off winger Roarie Deacon and replacing him with on-loan Celtic midfielder Scott Allan.
The playmaker made an immediate impact as he set up O’Hara after 80 minutes for the versatile 21-year-old to slam the ball past Foderingham and into the back of the net.
Murty threw on striker Ryan Hardie for Candeias but there was no joy as the visitors pushed forward for an equaliser. Jason Holt had the last chance of the match but Parish was up to task as the Dees moved above Partick Thistle at the bottom of the table.
It was a solid and strong performance by the Dundonians. Rangers were arguably the more creative but were wasteful in front of goal while O’Hara was deadly from inside the area to down the fourth placed side.
FULL TIME: Dundee 2-1 Rangers
12. Elliot Parish
2. Cammy Kerr
22. Jack Hendry
24. Josh Meekings
15. Jon Aurtenetxe Borde
8. Glen Kamara
14. Mark O’Hara
18. Paul McGowan
21. Roarie Deacon (Scott Allan 79′)
29. Marcus Haber (Sofien Moussa 44′)
20. Faissal El Bakhtaoui
38. Calum Ferie (GK)
3. Kevin Holt
7. A-Jay Leitch-Smith
9. Sofien Moussa
10. Scott Allan
16. Julen Etxabeguren Leanizbarrutia
27. Jesse Currant
1. Wes Foderingham
2. James Tavernier
40. Ross McCrorie
6. Danny Wilson
3. Declan John
11. Josh Windass
8. Ryan Jack
23. Jason Holt
21. Daniel Candeias (Ryan Hardie 84′)
20. Alfredo Morelos (Eduardo Herrera 45′)
9. Kenny Miller
25. Jak Alnwick (GK)
15. Eduardo Herrera
17. Lee Hodson
24. David Bates
27. Carlos Pena
31. Ryan Hardie
35. Jamie Barjonas
Referee: Kevin Clancy