Bonnyrigg Rose were denied a shock win in the third round of the Scottish Cup as Brechin City came from two goals down to force a replay.
Junior football's East Superleague champions took a 21st-minute lead as Kevin McLeish's cross from the right was thumped into the top corner by Sean Grady from close range.
Rose could have gone two-goals up before the interval, but Alex King's close range effort went wide of the left-hand post.
The minnows got their second in the 58th minute as Kris Renton headed Grady's right-wing cross into the top corner from inside the six-yard box.
However, their Second Division opponents pulled one back just three minutes later as Andrew Jackson found the left corner from six yards out.
And the hosts equalised with 12 minutes left as David Dunn turned the ball into his own net from close range.
Bonnyrigg held on for a replay at their own New Dundas Park.