Former Rangers winger David Templeton was on target as Hamilton recorded at 2-0 win at Ibrox - their first league victory at the stadium since 1926.
Templeton accepted a gift from Ross McCrorie to open the scoring two minutes into the second half and Darren Lyon netted his second first-team goal on a breakaway 10 minutes from time.
Hamilton finished the match with 10 men as Alex Gogic was sent off in stoppage time, but that did little to taint the Accies' first win over the Light Blues since Adrian Sprott scored a famous cup winner at Ibrox 30 years ago.
Former Rangers goalkeeper and Scotland manager Bobby Brown helped make the half-time draw but even the 94-year-old was too young to remember the last time the Accies took the points back to Lanarkshire from Ibrox.
Rangers had gone into the game looking to secure a third consecutive win for the first time in 2017, but caretaker manager Graeme Murty saw his chances of landing the job on a long-term basis severely dented, despite earlier wins over Hearts and Partick Thistle.
The home side started brightly and went close through both Alfredo Morelos and Kenny Miller, but the story of the first half was the Glaswegian outfit's failure to convert the numerous chances they created.
Morelos did have two excellent first-half chances, though, first heading Josh Windass' cross over from four yards, before a second header hit the bar after goalkeeper Gary Woods' mistake in stoppage time.
Templeton had shown some good touches in the first half but the Accies had failed to trouble Wes Foderingham until the winger was handed a gift. McCrorie's misplaced pass sent Templeton clean through and he rounded the goalkeeper before slotting the visitors in front.
Murty's men took time to recover from the blow, but a Morelos delivery almost forced Xavier Tomas into an own goal, before the Colombian passed up yet another chance when he failed to make contact with a low driven cross from Daniel Candeias.
The former HJK Helsinki striker missed another glorious chance when Ryan Jack played him through after Gogic had given the ball away, but he shot well over with several Accies players in close pursuit.
Murty immediately brought on a new strike pairing of Ryan Hardie and Eduardo Herrera but Rangers were caught out by a strong break by Greg Docherty, whose square ball was stroked home by Lyon.
Woods saved from Windass and Herrera and Danny Wilson headed against the bar but the comeback attempts were played out in a subdued atmosphere as Ibrox had almost emptied by the time Gogic received a second yellow card for a stoppage-time foul on Hardie.