Juan Carlos Ferrero won Spain a place in the semi-finals of the Davis Cup with victory over Germany's Andreas Beck in the deciding rubber in Marbella.
Ferrero was handed the task of winning the final reverse singles match in favour of Tommy Robredo and the veteran repaid captain Alberto Costa's faith with a 6-4 6-4 6-4 success.
The defending champions will again have home advantage in the semi-finals against surprise package Israel, who completed a 4-1 victory over Russia on Sunday.
The resurgent Ferrero was only called into the squad following his Wimbledon quarter-final defeat to Andy Murray, when David Ferrer pulled out with an injury.
Philipp Kohlschreiber earlier overcame a dramatic fightback from Fernando Verdasco to win 6-4 6-2 1-6 2-6 8-6 and level the tie.
The German dominated the first two sets before Verdasco turned the match on its head by taking the next two comfortably.
Kohlschreiber got a crucial break in the deciding set but the Spaniard saved a match point at 3-5 before breaking back, but the fightback was in vain as the German converted his second with a forehand winner down the line.

Fleming - ATP had vested interest
Davydenko masters Nadal
Davydenko v Nadal
Nadal v Lopez
Davydenko v Djokovic
Djokovic happy with straight sets victory
Nadal v Blake - Nadal
Del Potro wins US Open
The countdown to the ATP World Tour Finals continues on Sky Sports with the ATP Shanghai Masters.
Skysports.com caught up with former Wimbledon champion Pat Cash to discuss all things US Open 2009.
Gerry Williams told Sky Sports News he is delighted that Justine Henin will return to competitive tennis.