Hosts Brazil welcomed Spain to Rio de Janeiro in the final of the Confederations Cup on Sunday.
Brazil, who had not lost a competitive match on home soil since 1975, took the lead after just two minutes when Fred converted from inside the box.
The Selecao continued to impress in the first period, adding their second courtesy of a fine strike from Neymar in the latter stages of the half.
It was three after 47 minutes when Fred swept a low effort into the bottom corner, before Sergio Ramos sent a penalty wide for Spain eight minutes later.
It got worse for Spain in the latter stages of the half, however, when Gerard Pique was given his marching orders for a late challenge on Neymar.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
BRAZIL: Cesar; Alves, Thiago Silva, Luiz, Marcelo; Gustavo, Paulinho; Neymar, Oscar, Hulk; Fred
SPAIN: Casillas; Arbeloa, Pique, Ramos, Alba; Busquets, Xavi, Iniesta; Pedro, Torres, Mata