Blair Henderson hit a second-half hat-trick as we kept alive our hopes of reaching the last 16 of the Betfred Cup.
Eddie Ferns’ 11th-minute opener was cancelled out 60 seconds later by Kyle Macleod but Henderson’s treble means we head for McDiarmid Park on Saturday still in with a chance of topping Group B.
Binos boss Stuart McLaren made four changes to the team that lost at Glebe Park while Ross McGeachie, Aurelien Mazel and Darren Petrie were again out due to injury.
Elgin arrived at Forthbank on the back of a 4-2 win over Brechin but manager Jim Weir opted to make several alterations as he freshened up his team.
The first half was generally short on clear-cut chances but both goals came in the space of 60 seconds early in the match.
We went ahead after 11 minutes when Sean Dickson released Ferns with a perfect pass and the former Alloa forward ran clear to fire the ball past Stewart Black.
City equalised almost immediately when a clearance rebounded off a defender and on-loan Ross County forward Macleod took advantage to beat Chris Smith.
It looked anyone’s game at half-time but we were ahead three minutes after the restart when Henderson seized on a defensive error and sent a perfect lob over the keeper.
Elgin were unhappy that referee Scott Millar waved away appeals for a foul when Shane Sutherland went down under a ‘last-man’ challenge from Ross Smith midway through the second half and we were soon in control of the tie.
Henderson pounced from close range in 71 minutes after Black had done well to push out Ross Forsyth’s header then the former Berwick striker completed his hat-trick from the penalty spot after substitute Darren Smith had been tripped just inside the box.
Alex Docherty, a summer signing from Maryhill Black Star, came on for his debut as a substitute for the closing minutes, as we made it two home wins out of two in Group B to close the gap on leaders St Johnstone to a single point.
Stirling Albion: C Smith, Hodge, R Smith (Scott Davidson 71), McMillan, McKenzie, Henderson, Ferns (Docherty 82), Verlaque, Dickson (D Smith 70) McCue, Forsyth.
Subs (not used): Binnie (gk), Mills, Sam Davidson, Olanrewaju.
Goals: Ferns 11, Henderson 48, 71, pen 74
Elgin City: Black, Nicolson, MacPhee, Duff, Stewart, Reilly, Bruce (Cameron 57), Smith (Moore 70), Gunn (Sutherland 57), Macleod, Reid.
Subs (not used): Dunn (gk), McLeish, Cullen.
Goal: Macleod 12
Referee: Scott Millar