Agadir - Scotland's Richie Ramsay overcame a bumpy front nine before striking back with three straight birdies as he won the Trophee Hassan II tournament on Sunday by one stroke for his third European Tour victory.
A final round of 69, on the picturesque par-72 Golf de Palais Royal layout in Agadir, left Ramsay on 10-under and one shot clear of Frenchman and fellow overnight leader Romain Wattel.
It was a glorious return to form for the 31-year-old from Aberdeen after missing the cut in four of his five starts this season.
"I made some great putts on nine and ten and when I stood over my putt on 12 (for birdie), I felt really confident with my putter and just told myself to go for it," a delighted Ramsay told Sky Sports.
"The seven iron I hit on the last hole was one of the greatest shots I've ever made and this victory means a huge amount.
"This is for my brother and my family who are watching back at home. I've gone through some tough times but I always kept believing.
"It was so much fun out there today and it's absolutely brilliant, I'm going to go out now and celebrate with my caddie."
He began the final round as one of three men in front with Wattel and Scotland's Andrew McArthur with a group of seven players just one shot back on six under.
Wattel moved within a shot of the Scot with a birdie at the relatively easy par-5 17th but couldn't muster the birdie he needed to force a playoff when he couldn't chip in from the fringe on the 18th green.
Wattel was looking for his first European Tour victory but settles for a morale-boosting runner-up finish.
It appeared a third victory, to follow previous triumphs in 2009 at the South African Open and European Masters in 2012, had slipped away from Ramsay when he dropped three shots at eight and nine where he made bogey-double bogey allowing Wattel to take the outright lead.
But he refound his putting touch early on the inward turn with three consecutive birdies at 12, 13 and 14 to catch and then overtake the 24-year-old from Montpellier and never looked back.
Steady golf down the stretch, with four straight pars to close, and the fact that none of the challengers, apart from Wattel, were able to mount a serious challenge left Ramsay to savour a fine victory.
A group of six players finished on eight under and two shots back including Englishman Chris Wood, who shot a 67, Spaniard Pablo Larrazabal, Swede Mickael Lundberg, South African duo George Coetzee and Jaco Van Zyl as well as Irishman Kevin Phelan.
McArthur endured a difficult final day and slumped home with a three over 75 to slide down the leaderboard into a tie for 34th.
Spanish veteran Jose Maria Olazabal, 49, who won the Ryder Cup both as a player and captain and also won the Masters' twice, finished strongly with a blistering 66 to finish in a tie for ninth at seven under with four other players.Leading scores after the fourth and final round of the Trophee Hassan II tournament in Agadir on Sunday:
278 - Richie Ramsay (SCO) 72-66-71-69
279 - Romain Wattel (FRA) 68-74-67-70
- Pablo Larrazabal (ESP) 70-69-73-68, Kevin Phelan (IRL) 70-70-70-70,
Jaco Van Zyl (RSA) 69-71-70-70, George Coetzee (RSA) 67-72-71-70, Mikael
Lundberg (SWE) 70-75-66-69, Chris Wood (ENG) 67-72-74-67
Richard Bland (ENG) 69-70-71-71, Ben Evans (ENG) 69-70-74-68, Marcel
Schneider (GER) 73-69-72-67, Jose Maria Olazabal (ESP) 69-76-70-66, Wade
Ormsby (AUS) 71-72-68-70
282 - Soren Kjeldsen (DEN) 68-73-69-72, Mark Foster (ENG) 73-72-71-66, Anthony Wall (ENG) 68-72-72-70
- David Horsey (ENG) 70-71-69-73, Tommy Fleetwood (ENG) 70-71-73-69,
Andrew Marshall (ENG) 71-73-69-70, Eddie Pepperell (ENG) 71-74-69-69,
Seve Benson (ENG) 73-68-72-70, Bernd Ritthammer (GER) 71-70-71-71, Pelle
Edberg (SWE) 71-71-71-70