DARLINGTON, S.C. — Denny Hamlin overcame a bad miss of the pit road entrance and chased down Martin Truex Jr. with three laps left to win the Southern 500 at Darlington Raceway on Sunday night.

Hamlin checked up after sliding by the entrance with 54 laps remaining and fell behind Truex by 20 seconds. But Hamlin slowly reeled in Truex and passed him when Truex brushed the wall and got a flat tire.

Hamlin swept throwback weekend at Darlington after winning the Xfinity race Saturday. Truex won the first two stages, clinching NASCAR’s regular-season championship and gaining the No. 1 seed heading into the playoffs in two weeks.

Kyle Busch was second and his brother, Kurt, was third.

Hamlin led 124 laps and looked as if he was easily on the way to victory until he inexplicably missed the pit-road entrance. But he quickly began a comeback and eventually moved low around lapped traffic to take the lead from Truex, who stumbled home in eighth place.

INDYCAR: Pole-sitter Alexander Rossi won the IndyCar Grand Prix at The Glen, holding off Scott Dixon over the closing laps of a road course race in Watkins Glen, New York.

Points leader Josef Newgarden of Team Penske started third and remained in contention until a crash exiting the pits. He finished 18th, two laps down.

FORMULA ONE: Lewis Hamilton won the Italian Grand Prix virtually unchallenged from the pole position in Monza, Italy, and moved ahead of Sebastian Vettel to take the lead in the drivers’ standings.

Hamilton finished nearly five seconds ahead of Mercedes teammate Valtteri Bottas, while Vettel came in third in his Ferrari, more than half a minute behind. Hamilton now leads Vettel by three points with seven races remaining.

TRUCKS: Austin Cindic, racing on his 19th birthday, spun out leader Kaz Grala on the final lap of the road course race and earned a spot in the playoffs with his first career victory, in Bowmanville, Ontario.