Gilette Brasil Global Tour

The hosts are through to the last eight of the men's football tournament after finding their form at last with a comfortable 4-0 win over Denmark in Salvador

Hosts Brazil qualified for the quarter-finals of the men's football tournament at Rio 2016 with a comfortable 4-0 win over Denmark in Salvador.

Why Olympic gold matters to Brazil | Who is Brazil's Olympic coach? | Player Profiles: Brazil's Olympic squad

The tournament favourites had surprisingly drew blank against South Africa and Iraq, but finally hit the goal trail to avoid an embarrassing group-stage exit on home soil.

First-half strikes from Gabriel Barbosa and Gabriel Jesus eased the tension at the Fonte Nova Arena and Luan rounded off a fine move in the second half to put the result beyond doubt.

There was a late scare for Brazil when Neymar went down in pain after appearing to twist an ankle, but the Barcelona forward was able to continue and saw Gabriel Barbosa score again late on.

Brazil will take on Colombia in the last eight, while Denmark are also through - after South Africa and Iraq drew 1-1 - and will play Nigeria.

Reigning champions Mexico and Argentina each bowed out of the competition on Wednesday, while Germany progressed courtesy of a 10-0 trouncing of Fiji.

Mexico finished third in Group C after suffering a 1-0 defeat in Brasilia to South Korea, who now face Honduras.

Honduras qualified at Argentina's expense following a 1-1 draw between the two nations. Group D winners Portugal, Germany's last-eight opponents, rounded off their pool campaign by sharing the spoils with Algeria.

Colombia beat Nigeria 2-0 on Wednesday to join the African nation in progressing from Group B and deny Japan, who were 1-0 winners over Sweden.