Chris Ikonomidis scored in the fifth minute of stoppage time to lift Perth Glory to a thrilling 3-2 win over Central Coast at nib Stadium on Sunday.
The Mariners looked set to take a hard-earned point after a Glory own goal and Aiden O'Neill's 23-yard strike in the 64th minute levelled the scores at 2-2.
Glory were given a glimmer of hope when Mariners defender Kalifa Cisse was sent off in the third minute of stoppage time for his second yellow card.
But it wasn't until the dying seconds of the fifth and final minute of stoppage time that Perth scored the winner.
Glory striker Andy Keogh missed the ball with his attempted bicycle kick, but Ikonomidis was there to chest Neil Kilkenny's cross down before blasting it into the back of the net.
The 10,417 crowd erupted as Glory players mobbed Ikonomidis, who had opened the scoring in the 12th minute.
Glory's fourth straight win lifted them four points clear on top of the table, with Melbourne Victory (nine points) in second spot and Sydney FC (eight) in third.
Central Coast remain rooted to the bottom of the ladder with just two draws to show from five games.
Glory dominated the first half, with Ikonomidis capitalising on a sweet move to slot the opener.
A nice chip from Kilkenny and a square-up volley from Joel Chianese found its way to Ikonomidis, who scored from the low-drilled shot.
But the Mariners hit back against the run of play when defender Tomislav Mrcela's diving right-foot attempt to clear Andrew Hoole's cross went straight into his own net.
Shane Lowry's 61st-minute header restored Glory's lead, but scores were level again three minutes later when O'Neill's sweet strike from outside the box found the top left hand corner.
Glory coach Tony Popovic introduced fit-again midfielder Diego Castro in the 74th minute in a bid to find the winner, and the Spaniard displayed his usual flare.