Brazil reached the quarter-finals of Olympics men’s football with an impressive 4-0 win against Denmark.
Gabriel Barbosa got the first with a scrappy finish before new Manchester City signing Gabriel Jesus volleyed in.
Luan then finished off a fine team move before Barbosa’s deflected strike ensured Brazil went through as Group A winners.
Brazil will play Colombia in the last eight, while Denmark still go through despite the defeat after a 1-1 draw between South Africa and Iraq meant they finished second in the group.
Mexico, who beat Brazil 2-1 in the final at London 2012, were eliminated in Rio after defeat by South Korea
Hosts Brazil had come in for criticism after a lacklustre start to the tournament in which they were held to goalless draws by South Africa and Iraq.
Neymar’s form in particular had frustrated Brazilian fans, but the Barcelona forward looked more like himself against Denmark, with a beautiful chipped pass in the build-up to his side’s third a notable highlight.