McMurray began the 2007 season with crew chief Larry Carter. On June 22, 2007, he won his third career Cup pole, for the &lt;a href="2007%20Toyota/Save%20Mart%20350"&gt;Toyota Save/Mart 350&lt;/a&gt;. On lap 1, he was passed by Robby Gordon for the lead but he spent the first quarter of the race holding off Boris Said and Jeff Burton for second place. When Robby Gordon pitted after 34 laps, McMurray traded the lead repeatedly. With about 45 laps left, McMurray took the lead and dominated the final laps, but with 7 to go Cup rookie and his future teammate Juan Pablo Montoya passed him and held him off until McMurray eventually ran out of gas with 2 to go and resulted 37th. On July 7 at the Pepsi 400, McMurray led a few laps in the first stages. However, on lap 30, McMurray was then black-flagged by NASCAR for slipping out of bounds. He then spent the rest of the race charging back through the field eventually getting back to the front on lap 155. McMurray then led the final stages but battled Kyle Busch for five laps. On the last lap, Busch was the leader next to McMurray and charged to the finish, but at the last second, McMurray charged one last time and barely beat Busch to win the Pepsi 400 for his second career Cup win. The margin was 0.005 of a second, and the finish resembled the Daytona 500 of the year's finish when Kevin Harvick beat Mark Martin at the last second of the race that year. The photo finish, at that time, was the closest in Daytona International Speedway history and tied for the second closest finish (1993 DieHard 500) since the advent of electronic scoring in 1993. McMurray finished the year 17th in the point standings.