The Selecao, fueled by a deafeningly fantastic atmosphere inside the Maracana, brought la Roja to their knees with an outstanding display to claim their fourth Confederations Cup
The tournament hosts were in supreme form inside a raucous Maracana, ripping the reigning world and European champions to shreds to end their 29-match unbeaten run, and claim the trophy for the fourth time, alongside their triumphs of 2009, 2005 and 1997.
Fred needed only 90 seconds to open the scoring, before a thumping second from Neymar moments before the break rounded off an excellent Brazil first half.
The onslaught continued two minutes after the restart when Fred put another past a shellshocked Spain, which showed its ineptitude at both ends when Sergio Ramos lashed a penalty off target.
Gerard Pique's 68th-minute red card ended any fleeting hopes of a comeback from la Roja, as Brazil's win sparked wild celebrations in the stands, which will doubtless be outdone should the Selecao emerge victorious when the World Cup comes to these shores next summer.
Juan Mata, who scored in the penalty shootout during Spain’s semi-final win over Italy, replaced David Silva, making him the only change for either side from the previous round.
The fans had the Maracana rocking long before kickoff, and barely two minutes in, the home side nearly blew the roof off the famous stadium when it took the lead.
Oscar delivered a ball into the box, which Fred, Iker Casillas, Alvaro Arbeloa and Pique all challenged. And after a scramble, despite laying on the turf, the Fluminese man reacted quickest to poke home.
Fred very nearly set Oscar up for the second within minutes when he flicked across the box from Neymar’s cross, but Chelsea’s young playmaker drilled agonizingly wide.
Paulinho then made Casillas work hard to keep the deficit at one with a cheeky lob after robbing Andres Iniesta, with the Spain keeper backpedalling to get a hand to the attempt.
Vicente Del Bosque’s side was simply struggling to cope with the tenacity and energy in Brazil’s play, which was matched every step of the way by the fervour raining down from the stands.
And Arbeloa nearly committed a fatal mistake when he flattened Neymar on the halfway line, but with the fans baying for blood, only a yellow card was issued to the defender.
Spain finally showed signs of life when Iniesta’s rasping drive forced Julio Cesar to push around the post, but it was an aberration amid Brazil’s dominance, and Casillas had to stand tall again to stop Fred from point-blank range.
However, it was then Brazil’s turn to live on the edge when an outrageous goal-line clearance from David Luiz denied Pedro a sure-fire goal after Mata’s pass put him one-on-one with Cesar.
But with halftime approaching, Brazil would get its deserved second. Oscar drew the attention of the defense at the top of the box and deftly slipped in Neymar, who unleashed an unstoppable shot into the back of the net.
And two minutes after the interval, the hosts struck again. Hulk’s fantastic diagonal ball was cleverly dummied by Neymar, leaving Fred to finish coolly into the bottom corner.
Spain was handed a glimmer of hope with a penalty after Marcelo clumsily challenged substitute Jesus Navas, but Ramos extinguished that optimism almost instantly with a wild spot kick that flew wide.
And the Europeans were finished for good when Pique stuck out a leg in vain to bring down a streaking Neymar, earning the Barcelona defender a straight red card as the last man.
It was party time inside the Maracana, with the irrepressible Neymar driving past defenders with ease, and substitute Jo coming close to a fourth with a powerful strike that was saved by Casillas.
Spain had a few chances to restore a little pride, but Pedro was denied excellently from close range by Cesar, who did equally well to push away a curling Villa effort with only minutes remaining.
But it just was not la Roja's night, with the final whistle signalling what had been an inevitability for some time as the Brazil celebrations kicked off in earnest.
Now the only question that remains for the Selecao is whether they can ride this momentum all the way onto the biggest stage of them all.