TALLADEGA, Ala. -- Chase Elliott had fought his way up to second place with 20 laps to go. Then he was bumped from the rear, and chaos ensued.

AJ Allmendinger was coming up behind Elliott and bumped him while the pack was coming out of the turn and onto the back stretch. As Elliott lost control, Allmendinger bumped him again. This time it caused Elliott to spin out towards the wall. Joey Lagano pushed the No. 24 Chevrolet up onto the wall. Elliott's car nearly flipped, but it slid down the wall and onto Logano's hood as more than a dozen other cars crashed and debris flew across the track.

There were 17 cars that were involved in the wreck which finished with Allmendinger's car upside down at Talladega Superspeedway on Sunday. The red flag waved with 19 laps left.

Allmendinger and Elliott met in the infield and talked briefly.

"He just apologized," Chase told FOX Sports during the broadcast. "I don't know that it was really his fault...he kind of got to my bumper and got in a bad spot."

Elliott, a native of Dawsonville, Georgia, started the MONSTER Energy Cup Series GEICO 500 in eighth. It was the same track where his father, Hall of Famer Bill Elliott, posted the fasted speed ever at a NASCAR event.

But the 21-year-old has yet to capture his first Cup race victory. He has five top-five finishes this season.

We are still under the red flag. #NASCARonFOX pic.twitter.com/vTrUK4vx8o

— NASCAR (@NASCAR) May 7, 2017

Kyle Bush led the race at the restart. Ricky Stenhouse Jr. won the race for his first victory at the Superspeedway.

PHOTOS | Massive wreck at Talladega Superspeeway