Joey Logano won NASCAR’s annual All-Star race by snatching the lead away from Kyle Larson with two laps remaining in the $1 million exhibition event at Charlotte Motor Speedway.

Larson had raced his way into the main event earlier Saturday by beating Chase Elliott in a last-lap door-to-door battle to the checkered flag. He then rocketed to the lead in the All-Star race by using four fresh tires to drive to the front on the restart of the 13-lap dash-for-cash.

Logano eventually caught him and Larson tried several times to hold him off, but as the two raced side-by-side, Larson smacked the wall and the damage took him out of contention.