Shane Sutherland scored a second-half double as Elgin came from behind to beat Berwick 3-2 at Shielfield Park.
Berwick broke the deadlock in the 26th minute when in-form Darren Lavery headed in from a Lee Currie corner - his seventh goal in eight games.
Dean Hoskins doubled his side's lead three minutes before half-time from another set-piece delivery.
Sutherland began the Elgin fightback by lobbing over goalkeeper Paul Grant 10 minutes after the break.
He then hauled his side level six minutes later with a shot into the corner.
Berwick missed a glorious chance to regain the lead in the 66th minute. In a crazy period, Lavery hit the woodwork before having a penalty saved by Elgin keeper Raymond Jellema after Steven Notman was felled.
Elgin showed Lavery how it was done when Paul Harkins converted from the spot - after Michael Dunlop brought down Sutherland - to complete a full comeback for the guests.