RIO DE JANEIRO —
Spain badly wanted a victory against the five-time world champion, which was one of the few top teams it hadn't faced since it began dominating international football. Spain won the 2010 World Cup along with the 2008 and 2012 European Championships.
It was the first time the traditional football nations had met since a scoreless friendly in 1999. The last competitive match between the teams had been Brazil's 1-0 win in the first round of the 1986 World Cup in Mexico.
Brazil scored early on Sunday and kept pressuring, but it didn't take long for Spain to start taking control of the match. The Europeans were not able to create many dangerous opportunities, though, while Brazil kept threatening the most while relying on counterattacks.
Fred opened the scoring after a cross into the area by Hulk in the second minute. The ball bounced off Neymar near the far post and Fred, who had fallen while trying to reach for the cross, fired it in with his right foot while still on the ground.
Brazil added to the lead with Neymar's fourth goal in five matches after an exchange of passes with Oscar in the 44th. The newly signed Barcelona striker, touted as the future of Brazilian football, fired a powerful left-footed shot into the top of the net.
Neymar was voted the player of the tournament.
Neymar and Daniel Alves took the time after the match to congratulate their Barcelona teammates, who looked desolate across the field.
Fred closed the scoring in the 47th from just inside the area, sending a low shot to the far corner. Hulk started the move with a pass to Neymar, but the striker let it go as Fred came running behind him.
Spain had the penalty kick after Marcelo fouled Jesus Navas inside the area, but Sergio Ramos sent his kick wide.