Tournament host Sergio Garcia made a successful, if rather belated, title defence in the Andalucia Valderrama Masters to claim a sixth victory on home soil.
Masters champion Garcia, who won the last staging of the event in 2011, carded a closing 67 to finish 12 under par, a shot ahead of Holland's Joost Luiten.
England's Daniel Brooks was four strokes further back in third, a result good enough to secure his European Tour card for next season by moving him from 123rd on the Race to Dubai to inside the top 100.
After seeing his one-shot overnight lead quickly wiped out when Brooks birdied the second, Garcia responded with a birdie on the par-five fourth and ended the front nine in style by using a fairway wood to hole from the fringe for a birdie on the ninth.
Watched by his wife Angela and father Victor, Garcia then holed from 10 feet for birdie on the 10th and three feet on the next to move three clear, only to bogey the 12th after failing to get up and down from a greenside bunker.
The gap was down to one when Luiten birdied the 13th and another birdie on the 15th drew the Dutchman level, only for the five-time European Tour winner to three-putt the next.
Both men birdied the par-five 17th and when Luiten's birdie attempt on the last caught the edge of the hole and stayed out, Garcia had the luxury of two-putting from close range to claim a third win of the season.