Gerard McLauchlan scored twice as Brechin stretched their unbeaten run to seven matches with a victory over Ayr.
The defender had only previously scored once in 66 appearances for the Hedgemen - also against Ayr back in 2010 - but he trebled the tally in the space of one game with a goal in each half.
He opened the scoring in the 29th minute with a close-range header from Derek Carcary's right-wing corner.
The visitors equalised 11 minutes into the second period as Ewan Moyes turned Michael Moffat's header into his own net.
But City were ahead once more just three minutes later. Paul McLean's free-kick was not cleared and McLauchlan prodded the ball home from six yards out.
David Winters was denied a leveller as his fierce shot from the edge of the area was turned over the crossbar by Michael Andrews in the 76th minute.
Brechin: Andrews, McLauchlan, Hay, Moyes, Paul McLean, Trouten, Fusco, Jonathan Stewart (Brady 75), McKenna (Brown 82), Jackson, Carcary (Ryan Stewart 71). Subs Not Used: Nelson, Longridge.
Booked: Jackson, Brown.
Goals: McLauchlan 40, 59.
Ayr: Graeme Smith, McAusland, McGregor, Christopher Smith, McCann, Hunter (Winters 67), Sinclair, Crawford, Donald, Moffat, Buchanan. Subs Not Used: Brown, Marenghi, McStay, Brownlie.
Goals: Moyes 56 og.
Ref: Kevin Graham