Match ends, Brechin City 3, Rangers 4.
Substitute Nicky Clark headed the winner as Scottish League One leaders Rangers came from two goals down to beat Brechin City at Glebe Park.
Graham Hay's header and Jonny Brown's free-kick put the hosts in command before Jon Daly pulled one back.
Alan Trouten's strike sent Brechin in 3-1 up at the break.
Bilel Mohsni and Nicky Law fired home to level the match and Clark nodded in late on to maintain Rangers' winning start to the league season.
Ally McCoist's side have maximum points from their opening nine matches in the division while Brechin slip to second bottom.
However, Brechin had looked on course to end Rangers' record after three first-half goals.
Captain Hay rose unmarked to head Trouten's corner past Cammy Bell and Brown's free-kick from the edge of the box doubled the hosts' advantage.
Andy Little headed narrowly wide for the visitors but Daly did halve the deficit when he raced on to a long ball and slotted past Graeme Smith.
Rangers could have levelled when Ian Black's free-kick was fumbled by Smith and fell kindly for Lee McCulloch but the skipper fired wide.
And Brechin were soon celebrating again as Trouten pounced on a loose ball and drilled it past Bell.
Smith denied Little early in the second half but Mohsni converted following another free-kick delivery from Black.
The leveller soon arrived with Law's cross evading the goalkeeper and finding its way into the net.
Clark had replaced Robbie Crawford at the interval and the striker met fellow sub David Templeton's cross to put Rangers ahead for the first time.
And there was more disappointment for the hosts when Trouten was dismissed in injury time for picking up a second yellow card.
- 1SmithBooked at 54mins
- 2McLeanBooked at 22minsSubstituted forJacksonat 86'minutes
- 8AndersonBooked at 44minsSubstituted forMolloyat 76'minutes
- 7TroutenBooked at 90mins
- 11RyanSubstituted forBarrat 69'minutes
- 2FosterBooked at 78mins
- 3SmithBooked at 17mins
- 10MacLeodSubstituted forTempletonat 80'minutes
- 5MohsniBooked at 15mins
- 6McCullochBooked at 55mins
- 4CrawfordSubstituted forClarkat 45'minutes
- 8BlackBooked at 16mins
- 9DalyBooked at 60mins
- 7LittleSubstituted forHuttonat 86'minutes
- 11LawBooked at 11mins
- 17Sanchez Cribari
- Craig Charleston
- Shots on Target
Second Half ends, Brechin City 3, Rangers 4.
Corner, Rangers. Conceded by Ewan Moyes.
Second yellow card to Alan Trouten (Brechin City).
David Templeton (Rangers) wins a free kick on the right wing.
Foul by Alan Trouten (Brechin City).
Corner, Brechin City. Conceded by Cameron Bell.
Foul by Ian Black (Rangers).
Andy Jackson (Brechin City) wins a free kick in the defensive half.
Substitution, Rangers. Kyle Hutton replaces Andrew Little.
Substitution, Brechin City. Steven Jackson replaces Paul McLean.
Goal! Brechin City 3, Rangers 4. Nicky Clark (Rangers) header from the centre of the box to the bottom right corner. Assisted by David Templeton.
Alan Trouten (Brechin City) hits the left post with a right footed shot from the centre of the box.
Foul by Nicky Clark (Rangers).
Alan Trouten (Brechin City) wins a free kick in the attacking half.
Substitution, Rangers. David Templeton replaces Lewis MacLeod.
Foul by Andrew Little (Rangers).
Alan Trouten (Brechin City) wins a free kick in the defensive half.
Richard Foster (Rangers) is shown the yellow card.
Foul by Richard Foster (Rangers).