NASCAR's O'Reilly Auto Parts Series race at Martinsville Speedway on Saturday saw a huge multi-car pileup in the closing stages of the race.

With 23 laps to go at the Virginia short track, the caution flag came out when Ross Chastain was sent spinning in the No. 91 Chevrolet after receiving contact on the outside.

A few laps later, once the incident was cleared, the race was set to go green again, with Justin Allgaier and Lee Pulliam on the front row. However, as it did so, and the cars crossed the start-finish line, Pulliam's car did not pull away as expected.

With the whole field closely packed up, this led to Carson Kvapil wrecking straight into the back of Pulliam's car, serving as the catalyst for a 'big one' as the rest of the field's momentum saw them get caught up in the incident.

It was quite remarkable, and if you don't believe us, you can see for yourself here.

READ MORE: NASCAR Race Today: Cup Series at Martinsville start times, schedule, TV channel and live stream

Who won the O'Reilly Series race at Martinsville?

Thankfully, the race eventually got going again with 12 laps to go, and, after another caution, we finally got a winner, with Justin Allgaier claiming his third victory of the season.

Here are the full race results.

NASCAR O’Reilly Series Results - Martinsville
Pos Driver Manufacturer
1Justin AllgaierChevrolet
2Corey DayChevrolet
3Sammy SmithChevrolet
4Sheldon CreedChevrolet
5Lee PulliamChevrolet
6Austin HillChevrolet
7Dean ThompsonToyota
8Ross ChastainChevrolet
9Ryan SiegChevrolet
10Brent CrewsToyota
11Parker RetzlaffChevrolet
12Jesse LoveChevrolet
13Taylor GrayToyota
14Brennan PooleChevrolet
15Anthony AlfredoChevrolet
16Patrick StaropoliChevrolet
17Blaine PerkinsChevrolet
18Brandon JonesToyota
19Myatt SniderChevrolet
20William SawalichToyota
21Brad PerezChevrolet
22Lavar ScottChevrolet
23Sam MayerChevrolet
24Joey GaseChevrolet
25Rajah CaruthChevrolet
26Harrison BurtonToyota
27Garrett SmithleyChevrolet
28Carson KvapilChevrolet
29Austin GreenChevrolet
30Jeb BurtonChevrolet
31Andrew PattersonChevrolet
32Josh WilliamsChevrolet
33Nick SanchezFord
34Kyle SiegChevrolet
35Josh BilickiChevrolet
36Ryan EllisChevrolet
37Jeremy ClementsChevrolet
38Luke BaldwinFord

NASCAR TODAY: Michael Jordan 'all in' on winning lawsuit as JGR accuses rivals of cheating