McMurray, driving a Ford, snapped an 86-race winless drought and avoided a multicar crash that forced the race to end under a caution flag.
It was his first victory since July 2008 at Daytona.
Kasey Kahne, Joey Logano, Greg Biffle and Jeff Burton completed the top-five finishers.
The late crash saw Mark Martin's car sliding upside down on the track one lap away from the checkered flag. In a separate crash, Ryan Newman's Chevrolet turned upside down on the Chevy driven by Kevin Harvick, hit the outside wall and then slid down the track and barrel-rolled on the infield grass.
Newman was not injured but he had to be cut out of his car.
Reigning points champion Jimmie Johnson finished eighth but padded his lead to 187 over Martin and 204 ahead of Jeff Gordon.
Copyright 2009 by United Press International.