Brazil's national football team (Photo: AP)
The draw should have been simple as hosts Brazil and world champions Spain were automatically placed at the head of the two Groups, A and B, with the six other contestants placed in the remaining slots.
The only proviso was that Italy were kept apart from Spain, to separate the two European countries, and Uruguay kept apart from Brazil, to separate the two South American ones.
Italy were to be in Group A with Brazil, while Uruguay were going to be placed in Group B with Spain.
However when Uruguay's name was drawn, Alex Atala, Brazil's top chef who was helping FIFA general secretary Jerome Valcke make the draw, put his hand in the Group A bowl and drew out position A3.
Valcke placed Uruguay in B3, but Tahiti were later paired in the same position.
"That doesn't go at all, Tahiti must be in B3," said Valcke when he realised the mistake.
Tahiti were then placed in position B3 and Uruguay moved to place B2, meaning they would face Spain in their opening match.
"It was a bit of a chaotic draw, sorry for that," Valcke told a packed auditorium which included Brazil president Dilma Rousseff and FIFA president Sepp Blatter.
"It's sad these things happen in life, this is my first time," he said afterwards.
The completed draw placed Brazil, who have won the last two tournaments, with Japan, CONCACAF champions Mexico and Italy, runners-up to Spain in this year's European Championship.
Spain, the world and European champions, will open their campaign against South American champions Uruguay in Recife on June 16. Oceania champions Tahiti and the African champions, who will be decided on Feb. 10, complete the quartet.
The final takes place in Rio de Janeiro on June 30.
World Cup test
Belo Horizonte, Brasilia, Fortaleza, Recife, Rio de Janeiro and Salvador will host matches in the eight-team tournament, which is seen as a major organisational test ahead of the 2014 World Cup.
Stadiums in Fortaleza and Belo Horizonte are scheduled to be ready this month, while the other four are expected to be ready in March.
The six stadiums together cost $2 billion, making it the most expensive Confederations Cup since the tournament took its current shape in 1997.
Brazil won the right to host the World Cup in 2007 but delayed a whole year before deciding which 12 cities would be chosen to hold matches.
Most of the stadiums are on schedule although many are also over budget and the government's own Court of Audits says at least four of the 12 will be white elephants after the tournament.
A more worrying issue is transport infrastructure. Brazil's airports are old and rundown and few cities have adequate public transport networks. Authorities promised to modernise airports and build new bus and metro lines but so far little work has been done.
The Confederations Cup competition has already captured the public's imagination with FIFA reporting 132,000 tickets sold before Saturday's draw.
(For more sports news and updates, follow Ahram Online Sports on Twitter at@AO Sports and on Facebook atAhramOnlineSports)