ELKHART LAKE, Wis. -- Team owner Roger Penske gave AJ Allmendinger a second chance.

Now they both have a trophy to show for it -- and, perhaps, the foundation of a rebuilt racing career.

Allmendinger took the lead from Justin Allgaier with seven laps to go in regulation, then didn't get rattled through a late restart and two nerve-testing green-white-checkered overtime finishes, holding on to win Saturday's NASCAR Nationwide Series race at Road America.

Afterward, he expressed appreciation for Penske, the team owner who originally let him go last season after he was suspended for violating NASCAR's substance abuse policy.

"It's just meant the world to me," Allmendinger said. "This was the only way I could repay him. I was trying so hard out there -- and, at times, probably over-trying."

Allgaier finished second, followed by Parker Kligerman, Owen Kelly and Sam Hornish Jr.

Allgaier won a road course race at Montreal last season but still tipped his cap to Allmendinger's road racing skills.

"I'm still not a road racer, I can assure you of that," Allgaier said. "Just watching AJ in front of me and seeing some of the places he was able to get away from me on that last green-white-checkered, I still have some stuff to learn."

It's Allmendinger's first win in NASCAR, but not his first at Road America. He won at the four-mile road course in Central Wisconsin in 2006, racing in the Champ Car Series.

Billy Johnson led on a restart with eight to go, but he slid wide in Turn 5 and was passed by Allgaier and Allmendinger. Allmendinger then made the decisive move one lap later, snatching the lead from Allgaier at the top of the hill in Turn 6.

He'd have to defend his lead on three more restarts, fending off a charge from Allgaier with three laps to go and then facing two green-white-checkered finishes -- NASCAR's version of overtime.

Allmendinger once again took the lead, only to watch another caution come out for Michael Annett's accident to trigger a second overtime.

With drivers facing concerns about having enough fuel left on the second green-white-checkered restart, Allmendinger held on again to take the checkered flag and stop in Turn 5 to celebrate in front of the fans. Allmendinger even had enough fuel left to do a celebratory burnout.

"They weren't fun," Allmendinger said of all the restarts. "I had a lot of thoughts in my head about how bad that (stunk) having to do that. But it's part of the rules."

Regan Smith finished 32nd and leads the Nationwide Series standings by 28 points over Allgaier.

Defending race winner Nelson Piquet Jr. then had a rough moment before the race's halfway point, plowing into the back of Brian Scott's car. Piquet's hood crumpled in the crash, costing him any chance of contention.

The win was a big step for Allmendinger, whose racing career took a wrong turn last year when he failed a NASCAR drug test, resulting in a suspension and the loss of his ride at Penske Racing.

Allmendinger, who said he took a pill offered by a friend that turned out to be Adderall, was reinstated after completing a NASCAR-affiliated recovery program, and now is getting a limited second chance with the Penske team this year.

"I wouldn't have thought twice if he would have just kind of wrote it off and not called and went on," Allmendinger said of Penske. "He's got so much going on in his life. But he just kept checking up on me. I didn't expect anything from it. It was just nice to have a friend, somebody that I could bounce ideas off of."

Kilgerman, a friend of Allmendinger's off the track, is impressed by his resiliency.

"Once you've lost it all, I think you see a lot of times, you come back and you're better at what you do. I think we're seeing that right now with AJ."

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From KSOO-AM / ESPN Sioux Falls