Brazil produced a breathtaking performance at the Maracana to overwhelm Spain and claim their third consecutive Fifa Confederations Cup.
Driven on by the passion of a fiercely partisan crowd, the five-time world champions signalled their intent ahead of next summer's World Cup by ending Spain's 29-match competitive unbeaten record with a majestic display.
Fred scored twice, but Neymar again stole the show, scoring Brazil's second goal with a rasping left-foot shot.
To compound Spain's misery, Sergio Ramos missed a second-half penalty before Gerard Pique was sent off for bringing down Neymar as last man, with 22 minutes remaining.
"I thought it was a great night of football. An extraordinary atmosphere created by the crowd and the Brazil players responded and thoroughly deserved to win the match.
"It's a bit premature to write off Spain but they were a shambles. Brazil made them look poor. But I think they're methodical. I'm still not sure about them."
MOTD pundits reaction to Brazil's 3-0 win
At the final whistle, the Brazil fans proudly chanted 'the champions are back'. With David Luiz and Thiago Silva providing solidity at the back, the midfield generalship of Paulinho and the mercurial talents of Neymar in attack, the Selecao will certainly be a formidable proposition next year.
The streets around the Maracana had been a place of contrasts in the hours before the game. While
protestors clashed with police a mile or so away,
tens of thousands of Brazil fans danced in the streets.
The noise built to an incredible crescendo in the hour before kick-off, culminating with the Brazilian anthem, that stirred the passions of the partisan crowd.
History, too, was against Vicente Del Bosque's Spanish side. Brazil have not lost a competitive match on home soil since 1975 and you have to go back to 1934 to find the last time Spain had beaten them in a competitive match, home or away.
If Spain had dreamt of conjuring an early goal that might take the sting out of the mighty Maracana, they were made to think again by a Brazil side that pressed and probed and, carried on by the sheer emotion inside the stadium, snatched the lead inside two minutes.
Hulk's cross from the right was knocked down by Neymar at the back post. Fred lost his footing but as the ball came back his way, he swung a boot at it from the ground, lifting the ball up and over Spain goalkeeper Iker Casillas and into the net.
Brazil are the first team to win three successive Fifa Confederations Cups. France won back-to-back titles in 2001 and 2003.
Spain, normally so calm and controlled, briefly lost their way. Oscar fired narrowly wide from a fantastic chance, while Casillas scrambled back to claw Paulinho's deft lob from under his crossbar.
Brazil pressed Spain with an intensity that has become their own hallmark in recent times. They attacked with a fluency and flair that unsettled the world champions and that left Pique and Ramos flummoxed time and time again.
On two occasions during the first half, Dutch referee Bjorn Kuipers decided against sending Spain defenders off after first Neymar and then Oscar were tripped when through on goal. Both Ramos and Alvaro Arbeloa were show yellow cards, much to Brazil's frustration.
Spain did create chances, but Andres Iniesta forced a save from Julio Cesar. Indeed, the Barcelona midfielder was at the heart of Spain's few constructive moments. He started the move that saw Torres's reverse pass free Jordi Alba who in turn found Pedro only for David Luiz to appear from nowhere and slice a shot that was rolling into the net, high over the bar to safety.
Brazil were finding the strength to block crosses, charge down shots and they attacked with cohesion and confidence. Hulk sent Fred through on goal only for Casillas to come to Spain's rescue.
But Brazil would not be denied. With half-time approaching, they poured forward again, this time with Neymar. The 21-year-old exchanged passes with Oscar, cleverly coming back onside, took one touch and fizzed a left-foot shot high beyond Casillas and into the net.
The Spanish were unbeaten in 29 competitive games (won 24, drew 5) before this defeat.
The run was a world record which began after their 1-0 defeat to Switzerland at the 2010 World Cup
The Maracana rose to acclaim their boy wonder as one, but Spain looked shell-shocked as the celebrations continued all around them.
Spain were desperate to hear the half-time whistle. But even that brought only 15 minutes of respite. They were booed as they re-emerged onto the pitch and within two minutes they were three behind, as Fred rolled a delightful first-time finish beyond Casillas to twist the knife.
Nothing was going Spain's way. Even when they won a penalty when Marcelo flicked a leg at substitute Jesus Navas, Ramos pulled his shot tamely wide, much to the delight of the Maracana. It was a moment that encapsulated Spain's evening.
The world champions continued to push, with Pedro twice drawing top-class saves from Cesar late on before the hosts lifted the trophy.
For Brazil, the party has only just begun.
- 12 Julio Cesar
- 02 Alves
- 03 Thiago Silva
- 04 Luiz
- 06 Marcelo
- 11 Oscar
- 17 Dias
- 18 Paulinho (Hernanes - 88' )
- 09 Fred (Jo - 80' )
- 10 Neymar
- 19 Hulk (Jadson - 73' )
- 01 Jefferson
- 22 Cavalieri
- 13 Dante
- 14 Filipe
- 16 Rever
- 05 Fernando
- 07 Lucas Moura
- 08 Hernanes
- 15 Jean
- 20 Bernard
- 23 Jadson
- 21 Jo
- 01 Casillas
- 03 Pique Dismissed
- 15 Ramos Booked
- 17 Arbeloa Booked (Azpilicueta - 46' )
- 18 Alba
- 06 Iniesta
- 08 Xavi
- 16 Busquets
- 09 Torres (Villa - 59' )
- 11 Pedro
- 13 Mata (Navas - 52' )
- 12 Valdes
- 23 Reina
- 02 Albiol
- 05 Azpilicueta
- 19 Monreal
- 04 Martinez
- 10 Fabregas
- 20 Cazorla
- 21 Silva
- 22 Navas
- 07 Villa
- 14 Soldado