Fourteen-man Edinburgh ends Glasgow's run
It is the first 1872 Cup clash of the three scheduled this campaign, with the second at Scotstoun next week in what is a festive double-header between the Scottish sides.
And it is Edinburgh who will be smiling going into Christmas after a spirited display in front of 23,833 fans, a record 1872 Cup crowd.
Warriors went into the encounter with a perfect 10 wins from 10 in this season's Pro14, and it looked like it would be a routine 11th early on.
The opening exchanges all went Glasgow's way as the returning Huw Jones crashed over in only the second minute, Peter Horne making no mistake from the tee to add the extras.
And it went from bad to worse for the hosts when Simon Berghan was red-carded just minutes later.
The hosts could have folded, but showed a battling resilience to stay within touching distance of their in-form visitors.
And they got themselves on the scoresheet when Sam Hidalgo-Clyne sent a penalty sailing between the posts on 18 minutes.
Indeed, Edinburgh had a sizeable amount of possession and territory as they kept Glasgow at bay for the rest of the half.
The visitors came out strongly in the second period and moved themselves seven points clear once more, Peter Horne slotting a three-pointer after winning a penalty at the scrum.
However, almost immediately, Edinburgh closed the gap when Hidalgo-Clyne displayed dead-eye vision once again to net his second penalty.
Warriors will have thought they had dealt the decisive blow 15 minutes into the second half when Scott Cummings raced over. Finn Russell, on for Alex Dunbar, sent the conversion true from out wide.
Once again, however, the 14 men of Edinburgh refused to roll over and hit back with a score of their own six minutes later.
Replacement Nathan Fowles powered over for his side's first try, wing Duhan van der Merwe converting.
And Edinburgh sensed their opportunity as they pushed and pushed in the closing stages, finally getting their reward when Dean crossed the whitewash with a minute to go.
Despite Van der Merwe missing the conversion, the referee's whistle blew, sparking wild celebrations among the Edinburgh faithful.
The scorers:
For Edinburgh:
Tries:Fowles, Dean
Con: Van der Walt
Pens: Hidalgo-Clyne 2
For Glasgow Warriors:
Tries:Jones, Cummings
Cons: Horne, Russell
Pen: Horne
Red card: Simon Berghan (Edinburgh, 5)
The teams:
Edinburgh: 15 Blair Kinghorn, 14 Dougie Fife, 13 James Johnstone, 12 Phil Burleigh, 11 Duhan van der Merwe, 10 Jaco van der Walt, 9 Sam Hidalgo-Clyne, 8 Cornell du Preez, 7 Hamish Watson, 6 Viliame Mata, 5 Grant Gilchrist, 4 Ben Toolis, 3 Simon Berghan, 2 Stuart McInally (captain), 1 Rory Sutherland.
Replacements: 16 Neil Cochrane, 17 Murray McCallum, 18 Matt Shields, 19 Fraser McKenzie, 20 Jamie Ritchie, 21 Nathan Fowles, 22 Chris Dean, 23 Darcy Graham.
Glasgow Warriors: 15 Ruaridh Jackson, 14 Tommy Seymour, 13 Huw Jones, 12 Alex Dunbar, 11 Lee Jones, 10 Peter Horne, 9 Ali Price, 8 Samu Vunisa, 7 Matt Smith, 6 Robert Harley, 5 Jonny Gray (captain), 4 Scott Cummings, 3 Zander Fagerson, 2 Fraser Brown, 1 Jamie Bhatti.
Replacements: 16 Pat MacArthur, 17 Oli Kebble, 18 Siua Halanukonuka, 19 Kiran McDonald, 20 Chris Fusaro, 21 Henry Pyrgos, 22 Finn Russell, 23 Niko Matawalu.
Referee: Frank Murphy (Ireland)
Assistant referees: David Wilkinson (Ireland), Lloyd Linton (Scotland)
TMO: Kevin Beggs (Ireland)