Hangzhou, China (My Sportsbook) - Pretinha scored in extra time as Brazil edged Denmark, 1-0, on Thursday to finish a perfect run through Group D.
The Brazilians were the lone team to win all three games in the group stage and didn't allow a goal. Brazil plays Australia in the quarterfinals Sunday.
Denmark ended a disappointing World Cup by failing to advance to the knockout round. Denmark made the quarterfinals in the first two World Cups, but was eliminated after group play in 1999 and didn't qualify in 2003.
Denmark created the first strong scoring opportunity in the eighth minute when Maiken Pape headed a cross toward the right side of the net that forced Brazil goalie Andreia to make a spectacular diving save.
Brazil answered with a strong chance in the 14th minute, but after Christiane got free in the box she curled a shot wide of the left post.
The Brazilians started to gain control after Christiane's miss, but could only manage long shots from well outside the box. Marta, Formiga and Christiane all had long shots sail off target.
Marta created another dangerous chance for Brazil when she streaked to the end line before putting a shot off the post. The ball bounced off the bar and just narrowly missed deflecting off Denmark goalie Heidi Johansen and possibly into the goal.
Denmark settled for quick attacks while Brazil controlled possession, but got more dangerous chances.
In the 38th minute off a corner kick, captain Katrine Pedersen ran onto a ball on the right side of the box and sent a header toward the far post that had to be cleared by a Brazilian defender.
Another corner in the 41st minute gave Denmark a look on goal, but after the ball rattled around the box, just missing the feet of numerous players, it was cleared by Brazil.
Brazil had a few more chances late in the first half, but instead of settling for long shots decided to send balls into the box through the air. The change didn't work out as Denmark's defense played all the chances well, winning the balls in the air to avoid giving up shots or rebounds in the box.
Marta opened the second half still searching for her fifth goal of the event, but a nice left-footed blast from the top of the box was pushed over the bar by Johansen in the 49th minute.
After China took the lead in its game against New Zealand - being played at the same time in Tianjin - Denmark made two switches in the 65th minute to try and get the win it needed to advance.
But Brazil was the team that continued to create the chances, and Marta was in the mix again. She drove a shot from just inside the box at the lower right of the net, but Johansen dove to touch it wide in the 68th minute.
Denmark substitutes weren't quiet, though, as Johanna Rasmussen struck a hard shot past Andreia but just wide of the right post in the 72nd minute.
However, the chance didn't slow down Brazil. Maycon answered with a run down the left side into the box. She got behind two defenders, but her cross rolled harmlessly across the front of the goal with Pretinha running on but unable to get a foot to the ball.
Denmark called upon its final weapon off the bench in the 79th minute, putting all-time leading scorer Merete Pedersen onto the field.
Denmark had a few chances in the following minutes, but the best one was from Katrine Pedersen. She struck a long free kick into the box, but Andreia got to the ball and covered it up at the left post.
Andreia made another fine save in the 80th minute, punching a shot away.
Denmark had just one chance the rest of the way, a wasted free kick from 24 yards, as Brazil had chances from Daniela and Marta from just a few yards out denied before Pretinha scored the winner.
Elaine set up the goal with a long pass into the box to Pretinha. She touched the ball over a charging Johansen for the game winner.
Not only did Denmark fail to advance to the quarterfinals, it lost a spot in the Olympics with the loss. The top three European teams in the World Cup got automatic berths in the Olympics.
Denmark coach Kenneth Heiner-Moller missed the game, serving the second game of a two-game ban for making contact with an official after the team's first game of the tournament.