Paula Badosa demonstrated her mental toughness to become the WTA Indian Wells champion in her desert debut on Sunday with a hard-fought, three-set victory over two-time champion Victoria Azarenka.

The Spaniard, who had not lost a set since her first match of the tournament, needed three hours and four minutes to out-muscle Azarenka 7-6 (7/5), 2-6, 7-6 (7/2).

"Every morning I wake up and my dream is to win a tournament like this," Badosa said. "I have to keep working hard and always believe. The key is to enjoy the journey."

Badosa won her only previous WTA final earlier this season in Belgrade but she did it via a retirement over Ana Konjuh.

This one was sweeter because Badosa got to close out the championship point on the court, hammering a forehand winner to the open side that Azarenka could only watch sail in.

Badosa celebrated the biggest win of her career by falling face first to the court, both hands covering her face while the crowd cheered.

"This is a dream come true," said Badosa during the post-match festivities on the court.

She then turned to Azarenka, saying "I remember when I was 14 or 15 years old seeing you win Grand Slams and hoping one day I can play like that."

Two-time Australian Open winner Azarenka was trying to become the first three-time WTA winner in Indian Wells.

She battled back several times on Sunday, digging in after dropping the first set in a tightly-contested tiebreaker. But the 32-year-old Belarussian fell behind early in the final set tiebreaker and couldn't recover.

Badosa got the first break of the match in the seventh game of the opening set but Azarenka immediately broke back to level at 4-4.

Spain's Paula Badosa plays a forehand en route to a marathon three-set win over  Victoria Azarenka of Belarus during the women's final at the WTA Indian Wells in Southern California
Spain's Paula Badosa plays a forehand en route to a marathon three-set win over Victoria Azarenka of Belarus during the women's final at the WTA Indian Wells in Southern California GETTY IMAGES NORTH AMERICA / CLIVE BRUNSKILL

Azarenka used an ace to win the fifth game of the opening set and then used another ace to set up the winning point in the ninth game to take a 5-4 lead.

The first set took one hour and 20 minutes including the tightly-contested tiebreaker.

Badosa jumped out to a 4-0 lead but Azarenka clawed her way back in to level it 5-5. An unforced error by Azarenka created set point and Badosa overpowered her with a blistering cross court forehand winner to end the marathon set.

Despite losing a gruelling first set in a tiebreaker, Azarenka looked the fresher of the two in at the beginning of the second set.

Azarenka started coming into the net more which shortened the rallies. Azarenka won the first three games of the second to set the tone and then served out the set with some solid placements and a few aces sprinkled in.

Azarenka smacked an ace to get to set point then closed it out when Badosa hit a backhand long.

Azarenka held serve in the eighth game of the third set as the two painted the lines in one of the longest rallies of the match. Azarenka blasted a backhand winner down the line to level the set at 4-4.

Azarenka broke in the ninth game but Badosa returned the favour in the very next game as the third set, like the entire match, went back and forth.

The tiebreak was pretty much all Badosa as the veteran Azarenka appeared to run out of gas, losing four of the final five points of the match.