Naomi Osaka suffered a shock 6-0 6-3 loss to Sara Sorribes Tormo as Spain took a 2-0 lead in their Fed Cup qualifier against Japan.
Ex-world number one Osaka lost her opening 10 points on serve as Sorribes Tormo dominated in the opening set of the match at La Manga Club in Murcia.
The Japanese player led 2-0 in the second set, but Sorribes Tormo, ranked 78th in the world, fought back.
Carla Suarez Navarro beat Misaki Doi 6-3 6-4 to put the hosts in control.
The winners of the best-of-five tie will be one of 12 nations in April's new-look Fed Cup Finals.
"We knew Sara could make it very uncomfortable for Naomi and she stuck to the gameplan perfectly," said Spain captain Anabel Medina Garrigues.
Great Britain are also trying to book their place in the Fed Cup Finals and they play away in Slovakia this weekend.