JOLIET, Ill. (AP) — Helio Castroneves won the race in the closest finish in the history of the IndyCar Series, but it wasn't enough to stop Scott Dixon from taking his second championship.

Castroneves came from last place Sunday to win the PEAK Indy 300, but Dixon, who knew coming in he only had to finish eighth or better to win the title, took the lead with a perfect pit stop late in the race and nearly held off Castroneves for the victory, crossing the finish line inches behind the winner.