Miami - Denny Hamlin roared from fourth on the last lap to edge Martin Truex at the finish line and capture the closest-ever Daytona 500 by 0.01 of a second on Sunday.
It was the first victory in 11 attempts for the 35-year-old American at the US stock car season opener, the biggest race in the oval series that is the most popular form of US auto racing.
"I don't know where that came from," Hamlin said. "I don't know what happened. It just came from where it did."
Hamlin's win was also the first victory for engine maker Toyota in the feature race of the National Association for Stock Car Auto Racing (NASCAR) campaign, topping a podium sweep for the Japanese firm.
"This is amazing for Toyota," Hamlin said.
Matt Kenseth led as the last of 200 laps around the 2.5-mile (4km) oval began, but Hamlin went to the outside and surged into second. Kenseth moved to the outside but Hamlin dropped to the middle of the track and passed him, moving alongside Truex as they came around the final turn.
They sped to the line side by side and a photo finish showed Hamlin the winner by barely a fender.
"I did all I could," Truex said. "I had the lead. Really proud of that effort. I thought I could keep that foot or so. I lost it in the last second."
Kyle Busch was third with Kevin Harvick fourth and Carl Edwards fifth.