MADRID, Spain — Andy Roddick lost to David Ferrer in five sets, giving Spain a commanding 2-0 lead Friday over the defending champion United States in their Davis Cup semifinal.

The fifth-ranked Ferrer defeated No. 8 Roddick 7-6 (5), 2-6, 1-6, 6-4, 8-6 before a near-capacity crowd of 21,000 at the Las Ventas bullfighting arena.

Earlier, top-ranked Rafael Nadal gave the hosts the early advantage with a 6-7 (5), 6-4, 6-3, 6-4 win over Sam Querrey.

Spain, which hasn't lost a clay-court Davis Cup series in nine years, could secure its sixth Davis Cup final appearance today when Fernando Verdasco and Feliciano Lopez play Americans Mike Bryan and Mardy Fish in doubles.

"Obviously we're up against it, but we knew that coming here," said U.S. captain Patrick McEnroe. "We're going to try and win the doubles."