Brechin came from behind to see off Queen's Park in a hard-fought Scottish Cup first-round replay at Hampden.
Steven Hampshire (left) sparked Brechin's comeback
The Spiders took the lead in 23 minutes with a beautifully taken goal after Paul Ronald found the net with a rasping volley.
Brechin replied with goals in 52 and 53 minutes through a neat finish from Steven Hampshire and a Paddy Connolly diving header respectively.
City now face a home tie against Preston Athletic in the next round.
The Spiders merited their half-time lead after dominating the midfield against their Second Division opponents and won most of the 50-50 challenges.
But Brechin boss Michael O'Neill changed his side at the break, bringing on Charlie King for Scott Walker.
The change sparked the visitors into life as they made inroads towards the Spiders' goal and fashioned a deserved equaliser through Hampshire.
The visitors took the lead a minute later when Connolly converted a flowing move with a diving header.
Queen's Park keeper David Crawford saved the home side from going further behind when he saved a Hampshire header with half an hour remaining.
Queens Park: Crawford, Paton, Dunlop, Reilly, Agostini, Trouten, Kettlewell, Dunn (Canning 82), Ronald (Bowers 75), Weatherston, Ferry. Subs Not Used: Whelan, Cairney, Cowie.
Goals: Ronald 23.
Brechin: Nelson, Richard Walker, Callaghan, Ward, Scott Walker (King 46), White, Byers, Flynn, Hampshire, Connolly (Geddes 82), Smith. Subs Not Used: Devlin, McEwan, Hillcoat.
Goals: Hampshire 52, Connolly 53.
Ref: J McKendrick.