Final-round leaderboard (all played at St Andrews):
-17 M Kaymer (Ger) -14 D Willett (Eng) -13 J Parry (Eng) -12 G Boyd (Eng) -11 S Dyson (Eng), M Laird (Sco), A Quiros (Spn)
Selected others: -7 R Fisher (Eng) P Harrington (Ire), G McDowell (NI), L Westwood (Eng) -4 E Els (SA), M Manassero (Ita) -1 C Montgomerie (Sco) +2 R McIlroy (NI)
Kaymer now has seven European Tour titles and one major
Martin Kaymer won the Dunhill Links Championship at St Andrews as Lee Westwood failed in his bid to overtake Tiger Woods as the world's number one.
Resuming in fifth, and needing to come second to dethrone Woods, Westwood fired a 73 on a windy Old Course to end 10 shots off Kaymer's 17-under total.
A 66 was enough for German Kaymer, who becomes the first player since Woods in 2006 to win three events in a row.
England's Danny Willett ended two shots back to finish in second place.
John Parry, who led by two overnight, was another stroke back in third.
Kaymer sank seven birdies and just one bogey to seal his third straight strokeplay victory, following his victories at the USPGA Championship in August and September's KLM Dutch Open.
The 25-year-old is the first European player to achieve that feat since Nick Faldo in 1989.
Kaymer is now up to number four in the world and extended his lead at the top of the European money list to more than £860,000 clear of Graeme McDowell.
The victory - his fourth of the year - came six days after a winning debut on his Ryder Cup debut at Celtic Manor.
You won't see me back until I can practise fully and do myself justice
Vicar's son Willett had threatened to spring an upset when he sank a 50-foot eagle putt from off the green at the long 14th to go into the joint lead.
But Kaymer responded by following him in from 25 ft for birdie, then made his own outrageous 40-footer from left of the 17th green.
At the last hole his drive finished on Granny Clark's Wynd, the road crossing the fairway, but he hit his second off the tarmac to six feet and made it for yet another birdie.
Kaymer finished seventh in the Open at St Andrews earlier this year when he closed with three successive bogeys.
"It was always one of my dreams to win here," he said. "I can still remember my first day here as an amateur, walking down the first hole and over the bridge - it felt very special to me.
"If you would have given me a par on 17 I would have given you a lot of money - that was more luck than skill."
As for three wins in a row he added: "I'm surprised as well. I don't really have answer for why I am playing so well at the moment."
Westwood's quest for the world number one spot had been the focus at the start of the day.
But after putting himself in contention with a marvellous 66 at Carnoustie on Saturday, Westwood began his final round solidly, with seven opening pars before picking up shots at the eighth and the 10th.
However, four bogeys in his next seven holes put paid to his top ranking aspirations before a consolation birdie on the last.
The Worksop golfer was not overly perturbed at falling short, revealing he was hampered by the calf injury, which had threatened his participation in Europe's victory over the United States at Celtic Manor last weekend.
"The calf got progressively more agitated and sore as the week progressed," he said. "I haven't given it a chance to fully heal. I got to about 80% [fit] for Celtic Manor which I thought would be enough given the adrenalin that goes with the Ryder Cup.
"It's not easy, with only two days off and spending six hours on my feet - if it hadn't have been [Westwood's businessman playing partner] Johann [Rupert] and the Dunhill I wouldn't have bothered coming."
Parry had led by two overnight and was one in front with nine to play, but he three-putted the 11th and 13th, then went in a gorse bush for a double bogey seven on the next.
Willett has now had 16 top-10 finishes on the circuit. This was his seventh of the season, but the nearest he has come to winning so far.