Scotland's Richie Ramsay recovered from seeing a three-shot lead disappear in the space of two holes to win his third European Tour title in the Hassan Trophy on Sunday, with Ireland's Kevin Phelan finishing in third place.
Ramsay made a blistering start to the final round at Golf du Palais Royal, carding four birdies in a row from the third to move into pole position in pursuit of the title.
The 31-year-old from Aberdeen then three-putted the seventh and ran up a triple-bogey six on the eighth, where he came up short of the green off the tee and saw his first two chips fail to negotiate a steep slope and roll back to his feet.
That left Ramsay two shots off the lead but he battled back superbly with a hat-trick of birdies from the 12th to reclaim the lead on his way to a closing 69 to finish 10 under par, one ahead of France's Romain Wattel.
Six players shared third place on eight under, including Waterford's Phelan, after his fourth straight 70, and South African George Coetzee, who had needed to win to move into the world's top 50 and qualify for the Masters.
Former Ryder Cup captain Jose Maria Olazabal finished joint ninth on seven under following a final round of 66.
Wattel, who is still seeking his first European Tour title after eight top-10 finishes last season, said: "It's always disappointing to finish so close but I'm disappointed and happy because that was not my best week at all. I was not playing so good to so to be in contention without playing my best, I am happy.
"Even if I couldn't win I wanted to feel I had done my best and that was the most important thing for me. I have been struggling the last couple of months and this week finished second without playing my best golf, but improving big time my short game which is good news for me."
Coetzee was left to rue his performance on the front nine this week, playing that in two over par and the back nine in 10 under.
"I probably left two shots out there on nine and 10 but a good performance and I am happy with the result," he said. "It's been a long stretch and I am a little tired. I would have liked to have pulled it off but that's just the way things go. I will watch the Masters and wishing I was there."