Martin Truex Jr. won a stirring, laps-long duel for the lead with teammate Denny Hamlin in the delayed NASCAR Cup Series race at Martinsville Speedway on Sunday night.

AP Photo/Steve Helber

AP Photo/Steve Helber

Truex, who nudged Hamlin repeatedly in the turns and tried to get to his inside on the straightaways without success, finally made the pass with 15 laps to go, ducking underneath Hamlin coming out of the second turn. He sailed off to victory without another challenge as Hamlin and Chase Elliott battled the rest of the way for second.

Truex won for the third time in the last four races on the 0.526-mile oval, and became the first repeat winner this season.

The race was rained out after 42 laps Saturday night, and was completed as the second part of a doubleheader that started with the completion of the rain-delayed Xfinity Series race from Friday night.

RADICAL NEW NASCAR CARS TO DEBUT MAY 5.

Elliott, who won here last fall on his way to winning the series championship, held off Hamlin for second. Hamlin was third, followed by William Byron and Kyle Larson.

"That was a lot of fun there at the end, racing with Denny," Truex said about his Joe Gibbs Racing teammate. "We raced clean and we were able to come out on top."

The outcome was not only disappointing for Hamlin, who had a dominant car and led 276 laps, but also for Ryan Blaney, who won the first two stages and led 157 laps but dragged an air gun out of his pit after the final stop and was sent back to 19th in the field.

Earlier, he and Hamlin were dominant.

Blaney passed Hamlin for the lead on Lap 75 and cruised to victory in the 130-lap Stage 1, and Stage 2 played out much the same. Hamlin was fast early in the run, pulling comfortable ahead, but Blaney eventually ran him down to win that stage, too.

MORE NASCAR FROM FOX NEWS AUTOS

The race featured several drastic changes in fortunes, perhaps none bigger than for Joey Logano. He was in danger of being lapped at the end of the first stage, but gambled with others by staying on the track to gain track position when most of the leaders pitted.

It worked because another caution flew shortly thereafter, allowing him to pit for the fresh tires most other teams already had and stayed near the front the rest of the way.

Logano finished sixth.

Misfortune was the case for Alex Bowman, Brad Keselowski and several others because of a major pileup on the backstretch involving more than a dozen cars on Lap 387. Bowman had gotten as high as second before getting caught up in the mess that ended his day, and Keselowski, a two-time winner at Martinsville, also had to call it a day after the wreck.

CLICK HERE TO GET THE FOX NEWS APP

The accident started when Kyle Busch and Chris Buescher got together exiting Turn 2.

Daniel Saurez also was involved, and rode around the oval to the entrance to Turn 1, climbed out of his car when it caught fire and walked away as it burst into flames.

UP NEXT

The series stays in Virginia, and on a short track, at Richmond Raceway next weekend.