Spain have been drawn against Uruguay, Tahiti and the African Cup of Nations champion for the 2013 Confederations Cup in Brazil.
The tournament is a dress rehearsal for the World Cup, and La Roja have been given a mixed draw with the South American winners, the African champions – to be decided in February - and the Oceania titleholders.
Vicente Del Bosque's side will start their campaign in Recife on June 16 against Washington Tabarez's Uruguay, before moving to Rio de Janeiro on June 20 and Fortaleza on June 23 to play Tahiti and the African nation respectively.
The other group in the draw consisted of Brazil, Italy, Mexico and Japan.
Full tournament schedule
Brazil-Japan (Brasilia, June 15)
Mexico-Italy (Rio de Janeiro)
Brazil-Mexico (Fortaleza, June 19)
Italy-Japan (Recife, June 19)
Japan-Mexico (Belo Horizonte, June 22)
Italy-Brazil (Salvador, June 22)
Spain-Uruguay (Recife, June 16)
Tahiti-African Champions (Belo Horizonte, June 17)
Spain-Tahiti (Rio de Janeiro, June 20)
African Champions-Uruguay (Salvador, June 20)
African Champions-Spain (Fortaleza, June 23)
Uruguay-Tahiti (Recife, June 23)
Winner A v Runners-up B (Belo Horizonte, June 26)
Winner B v Runners-up A (Fortaleza, June 27)
Third Place Final
Salvador, June 30
Rio de Janeiro, June 30
Play the world's most challenging Fantasy Football Game by building your Team from Europe's best 5 leagues. Pick your favourite stars including Luis Suarez, Cristiano Ronaldo and Lionel Messi to compete against friends.