Harvick picked up his second Sprint Cup straight win when he passed Dale Earnhardt Jr. for the lead with just four laps remaining and then went on to edge him by just 0.7 seconds at the finish line.
It was Harvick's 16th career Sprint Cup win.
Kyle Busch led for most of the race -- 151 laps -- but ended in third place.
Denny Hamlin's streak of three straight wins at Martinsville was snapped with a 12th-place finish Sunday.
Puzzle-maker slips 'Murdoch Is Evil' into Rupert Murdoch's Sunday Telegraph
Exploding whale video goes viral on Internet