Sean Burns' brace proved decisive as Queen's Park resisted Elgin's second-half fight back to earn a thrilling victory at Borough Briggs.
Burns was on target to open the scoring with a low left-footed drive after 12 minutes before setting up Lawrence Shankland to tap in from close range as Gardner Speirs' men raced into an early two-goal lead.
Burns was again the creator after 32 minutes, teeing up Blair Spittal who made no mistake with a neat finish.
Michael Keenan swept home Anthony McParland's corner after the break before Burns notched his second with a fine long-range strike to give the Spiders a seemingly unassailable five-goal advantage.
Having lost four consecutive games, the Black and Whites seemed down and out when Paul Millar was on target with a left-footed finish to reduce the arrears.
But Craig Gunn's clinical strike from 12 yards and Brian Cameron's finish from the edge of the area in the final 10 minutes restored some pride for Ross Jack's side.
Elgin City: Malin, Beveridge, Crighton, Nicolson, McMullan, Cameron, Morrison (Harkins 58), O'Donoghue (Millar 60), Moore, Gunn, Leslie (McLean 70). Subs Not Used: Black, McHardy.
Goals: Millar 69, Gunn 80, Cameron 90.
Queen's Park: Parry, Gallacher (Bradley 83), Little, Brough, Robertson, Spittal (Davison 81), Anderson, McParland, Burns, Shankland (McVey 89), Keenan. Subs Not Used: Lochhead, Gibson.
Goals: Burns 12, Shankland 14, Spittal 32, Keenan 58, Burns 66.
Ref: Paul Robertson