AJ Allmendinger took home the Brickyard 200 title on Sunday at Indianapolis Motor Speedway after cashing in the advantage of two frightening multi-car crashes, the leader getting spun out and a penalty — all in the final five laps.

This was Allmendinger’s second NASCAR Cup start of the season. the 39-year-old raced to his second career Cup victory and gave Kaulig Racing its first win in only the organization’s seventh series start.

But the 0.929-second victory over Ryan Blaney in the first Cup race on the 14-turn, 2.439-mile road course was marred by two huge pileups that brought out red flags.

The first crash happened with five laps to go, starting when pole-winning driver William Byron went over the curbing in the fifth turn and was sent off the course. Eight more drivers quickly followed him, immediately bringing out a yellow and eventually a red flag.

“It was so weird, I have never had that experience before,” Byron said, saying he first noticed the problem when Kyle Larson went through the section just ahead of him. “I nailed something and tore it up.”

Track workers, who had been tending to the chicane throughout the race, eventually removed it and towed it away as fans cheered. Even Indianapolis Motor Speedway President Doug Boles walked onto the track in a suit and tie, grabbed a broom, and helped clean the area.

When the engines restarted, nobody was sure what to expect or how to navigate the altered turn. A few moments later, seven more cars crashed in the same spot and again the race was halted.

NASCAR officials did not immediately report any significant injuries, according to the Associated Press inputs.

Organizers made one modification to the track overnight — removing a “turtle” in the sixth turn that had caused some trouble during Saturday’s doubleheader. But it was the fifth turn that became problematic Sunday.

Some wondered whether fatigue from three days of practice, qualifying, and racing on the same course could have led to the deterioration of the curbing.

Drivers refused to speculate.

“I don’t believe in luck but I feel like that was bad luck. Wrong place, wrong time. I went around as a passenger, knowing what was going to happen,” Joey Logano said, AP reported.