Petra Kvitova outlasted her Dutch opponent Kiki Bertens to win a historic third Madrid Open title.
The Czech world number 10, who also won last week in Prague, finally triumphed 7-6 (8-6) 4-6 6-3 in two hours and 52 minutes.
Kvitova, who also won in Spain in 2011 and 2015, becomes the first woman to win the tournament three times.
But she was made work hard by the world number 20 before extending her winning run to 11 matches.
Bertens’s display after a week in which she beat world number two Caroline Wozniacki and five-time Grand Slam champion Maria Sharapova on the way to the final will lift her above her previous career-high ranking of 18.
The Dutchwoman went into the match mindful that the only previous meeting between the pair had resulted in a 6-1 6-0 win for her opponent in the opening round of Wimbledon in 2015.
There was little in it in the opening set with Bertens breaking to go 4-2 up, only for Kvitova to respond immediately, and it was no surprise that the set ended with a tie-break.
Kvitova, 28, overcame an early double fault to go 4-2 up in the tie-break but Bertens levelled it at 4-4 before the Czech claimed the next two points to set up two set points.
Bertens saved both but then failed to take advantage on her own serve with Kvitova loudly screaming her delight at taking advantage.
The 26-year-old Dutch player dug deep in the second set as Kvitova started to tire and errors crept into her game.
It allowed Bertens to capitalise and she smartly levelled up the match.
In the decider, Kvitova broke to go 4-2 up but Bertens broke straight back, only for Kvitova to break a second time and from there she held her nerve for her 24th WTA title.
Despite the victory, the match may have taken its toll on Kvitova, who is due to face British number one Johanna Konta in the opening round of the Rome Masters on Monday.