brazil soccer
Gabriel Jesus (11) celebrates after scoring in Brazil's match against Denmark. Getty

Host nation Brazil awoke from their Olympic soccer slumber, earning a 4-0 victory over Denmark in Salvador on Wednesday to advance to the quarterfinals.

It took a brace from Gabriel Barbosa, along with goals from Gabriel Jesus and Luan, for Brazil to brake out of their frustrating scoring slump in the group stage. Brazil failed to score in their first two group matches, causing much angst in the soccer-rich nation.

Brazil, the winner of Group A, will face Colombia on Saturday.

It was a one-sided match for the five-time World Cup champions. Brazil had 23 shots with 10 on goal, while Denmark managed just three shots with one on target. The Selecao also controlled possession against the Danes at 74 percent.

Denmark was still able to advance to the quarterfinals due to the 1-1 result between Iraq and South Africa. The Danes will face Nigeria, who won two games and earned one draw to take Group B.

While Brazil failed to score in their first two matches, they also have yet to concede a goal in the tournament.

There has been a great deal of pressure on Rogerio Micale's squad. Brazil is still trying to erase memories of the disappointment from the 2014 World Cup, and a poor showing at the Copa America Centenario.