Tommy Robredo and Nicolas Almagro won both reverse singles rubbers on Sunday to give Spain a 5-0 clean sweep of their Davis Cup World Group first round tie against Peru.
The victory propelled the 2004 champions to a quarter-final showdown with Germany in April.
After sealing the tie on Saturday in the doubles, Spain's Robredo beat Peru's Mauricio Echazu 6-4, 6-1 before Almagro sealed the sweep with a 6-2, 6-3 victory over Ivan Miranda.
"It was well disputed and playing here in Peru is something I will always hold dear as it marked my debut in the world group," said Almagro.
Peru, who made it to the World group for the first time this year, were hobbled by injuries and illness.
Echazu was a last-minute substitute for Matias Silva, who had to withdraw with a stomach problem. Silva himself had been a replacement for Luis Horna, who withdrew with an arm injury.
Draw for the 2008 Davis Cup World Group quarter-final after the completion of the first round matches on Sunday (prefix number denotes seeding)
1-Russia v Czech Republic
3-Argentina v 6-Sweden
5-Germany v 4-Spain
2-US v 7-France
* Ties to be played on 11-13 April