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.
Line-ups
Brechin
Formation 5-3-2
- 1SmithBooked at 54mins
- 2McLeanBooked at 22minsSubstituted forJacksonat 86'minutes
- 3Brown
- 5Moyes
- 4Hay
- 6McLaughlan
- 8AndersonBooked at 44minsSubstituted forMolloyat 76'minutes
- 7TroutenBooked at 90mins
- 11RyanSubstituted forBarrat 69'minutes
- 9Jackson
- 10Petrie
Substitutes
- 12Robb
- 14Jackson
- 15Molloy
- 16Donnelly
- 17Barr
- 18Cameron
- 21Nelson
Rangers
Formation 4-4-2
- 1Bell
- 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
Substitutes
- 12Templeton
- 14Clark
- 15Faure
- 16Simonsen
- 17Sanchez Cribari
- 18Hutton
- 19Aird
- Referee:
- Craig Charleston
- Attendance:
- 3,237
Match Stats
- Possession
- Home48%
- Away52%
- Shots
- Home8
- Away12
- Shots on Target
- Home3
- Away6
- Corners
- Home2
- Away6
- Fouls
- Home14
- Away18
Live Text
Post update
Full Time
Second Half ends, Brechin City 3, Rangers 4.
Post update
Corner, Rangers. Conceded by Ewan Moyes.
Dismissal
Second yellow card to Alan Trouten (Brechin City).
Post update
David Templeton (Rangers) wins a free kick on the right wing.
Post update
Foul by Alan Trouten (Brechin City).
Post update
Corner, Brechin City. Conceded by Cameron Bell.
Post update
Foul by Ian Black (Rangers).
Post update
Andy Jackson (Brechin City) wins a free kick in the defensive half.
Substitution
Substitution, Rangers. Kyle Hutton replaces Andrew Little.
Substitution
Substitution, Brechin City. Steven Jackson replaces Paul McLean.
Goal!
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.
Post update
Alan Trouten (Brechin City) hits the left post with a right footed shot from the centre of the box.
Post update
Foul by Nicky Clark (Rangers).
Post update
Alan Trouten (Brechin City) wins a free kick in the attacking half.
Substitution
Substitution, Rangers. David Templeton replaces Lewis MacLeod.
Post update
Foul by Andrew Little (Rangers).
Post update
Alan Trouten (Brechin City) wins a free kick in the defensive half.
Booking
Richard Foster (Rangers) is shown the yellow card.
Post update
Foul by Richard Foster (Rangers).