Nick Watney staked a late claim for a place on the US Ryder Cup team as he took advantage of a bad day for Sergio Garcia to carry off the title at The Barclays at Bethpage State Park.
The 31-year-old has endured a poor year on tour but put that behind him to register a three-shot victory after a closing 69 for a 10 under par finish, with Brandt Snedeker in second.
Garcia went from the top of the leaderboard at the start of the day to a tie for third alongside Dustin Johnson after a four-over 75. Padraig Harrington finish on two under, with Rory McIlroy a shot further back.
US captain Davis Love III is due to name his 12 on 4 September for the match against Europe at Medinah, starting on 28 September.
Watney entered the world's top 10 for the first time last year but has since drifted to 35th, his position before this triumph.
He is outside the qualifying places for the American team so will be relying on a wild card, but there could hardly be a better time to win and remind Love of his ability. Snedeker and Johnson, who had final rounds of 70 and 68 respectively, could say the same. They too are outside the top eight in the points standings.
Love has four captain's picks.
England's former world number one Lee Westwood finished in a share of fifth place with Canadian Graham DeLaet, South African Louis Oosthuizen and American Brian Harman.
Westwood, who will be in Medinah, had a closing 70 while DeLaet had a best-of-the-day 65 to leap 38 places on the leaderboard.
Luke Donald came in 10th after a one-under 70.