FONTANA, Calif. — Denny Hamlin was airlifted to a hospital Sunday after colliding with Joey Logano on the last lap while NASCAR’s newest rivals raced for the win in a thrilling finish at the Auto Club 400.
And Logano has even bigger worries than his burgeoning feud with Hamlin, whose team expects him to be fine: Three-time champion Tony Stewart got into a postrace shoving match with Logano, threatening to ‘‘whoop his [butt]’’ after the 22-year-old Logano aggressively blocked Stewart out of a late restart.
‘‘It’s time he learns a lesson,’’ Stewart said. ‘‘He’s run his mouth long enough. . . . He’s nothing but a little rich kid that’s never had to work in his life, so he’s going to learn what us working guys who had to work our way up [know about] how it works.’’
Almost forgotten in all that Fontana drama was Kyle Busch, who earned his first victory of the season when he sped past Hamlin and Logano on the final turn.
But the final lap was a spectacle pitting Hamlin against Logano, their cars side by side in their first race since the drivers confronted each other last week at Bristol in another argument about driving tactics.
On Sunday, Logano eventually hit the outside wall and managed to finish third, while Hamlin never made it to the line after hitting the inside wall with force. He received attention in an ambulance and was airlifted out due to traffic around the track.
Stewart, the defending Fontana champion, ran over to Logano’s car and confronted him after the race, shoving the younger driver — who then threw a water bottle at Stewart, the veteran said — before teammates pulled them apart.
Stewart, who finished 22d, was replaced by Logano at Joe Gibbs Racing when Stewart left to drive for his own team starting in 2009.
‘‘What the hell do you think I was mad about?’’ Stewart asked.
All eyes were on Hamlin and Logano, who got into it last week at Bristol: Hamlin spun Logano on that tight Tennessee bullring while Logano was racing Jeff Gordon for the late lead. Hamlin claimed Logano had cut him off three times earlier in the race, but Logano ran over to Hamlin’s car afterward and leaned in his window for an angry exchange before the teams pulled them apart.
Their final-lap theatrics at Fontana mostly appeared to be motivated by fierce racing for a win in a back-and-forth race on a wide 2-mile track. Hamlin’s crash was more dramatic than Logano’s contact with the wall, with Hamlin’s car going head-on into the inside wall.
Hamlin got himself out of the car, but then slumped to the ground beside it before medical help arrived. NASCAR didn’t immediately have an update on his condition, although JGR president J.D. Gibbs thought Hamlin would be fine.
Logano then got into a shoving match with Stewart, who also had a late lead. Logano went extremely low to block Stewart out of a late restart. Stewart was furious, responding to interview questions with a long series of expletives.
Hamlin and Logano ended up together in the final laps after Logano prevented Stewart from getting back in the hunt.
They were side by side heading into the final lap and largely stayed that way until Turn 3, where Logano began to work up the track. The cars made contact and eventually lost control, with Logano hitting the wall while Hamlin slid inside and made heavy contact with the wall.