HANGZHOU, China (AFP) - Brazil scored a last-gasp goal to book their place in the women's World Cup quarter-finals here Thursday, with their 1-0 victory crushing the dreams of a desperate Denmark.
Substitute Pretinha did the damage, scoring in the 91st minute after both sides came close in regulation time, to keep the South American powerhouse on course for their first title.
Denmark, whose campaign at this World Cup has been dogged by controversy, needed to win to keep their hopes alive, and are now out.
Brazil were virtually guaranteed of advancing before kick-off after securing enough points by earlier thumping minnows New Zealand and hosts China, to finish on top of Group D.
The fleet-footed Canarinha now take on Australia in Tianjin city on Sunday, after the Matildas qualified by drawing with Canada, also Thursday.
"We were so keen to win, but we lost a lot of chances, but we finally scored to win," said player of the match Daniela.
Coach Jorge Barcellos said he had lineup problems because he did not want three players, including Daniela, already on yellow cards to risk getting booked again and miss the quarter-final.
But he finally found the right combination after half-time.
With the 40,000-strong crowd chanting her name, masterful Marta was scorching for Brazil, often sprinting down the left wing leaving Danish defenders in her wake, to cross to teammates lurking nearer the goal.
Cristiane, whose relentless pace also caused problems, latched onto a lightning quick pass from Marta in the 14th minute but the 22-year-old forward miscued her shot which went wide.
Daniela should have scored on 20 minutes, when she found herself with space just inside the area, but fired over the bar.
But Denmark, ranked six in the world, also looked dangerous with several shots on target in the first half, as the Brazilian defence scrambled to clear danger inside the box.
Brazil came out firing in the second period, Marta launching a missile that goalkeeper Heidi Johansen flicked over the bar. She fired another that scraped the top of the woodwork on 55 minutes, bringing roars from the crowd.
But it was Pretinha, who came on after half-time, who ensured victory, latching onto a long ball on the right wing and lobbing her shot over an advancing Johansen.
Denmark assistant coach Per Nielsen praised his charges, saying they had plenty of chances.
"It was a great match and we put in an excellent performance but unfortunately we lost 1-0 but that's how it goes," he said. "I think we had our chances, no doubt."
Denmark's head coach Kenneth Heiner-Moller was sitting in the stands, serving a suspension for unsportsmanlike conduct earlier in the Cup.
The Danes have vowed to pursue an apparent spying incident that has dogged this tournament. Denmark were outraged to find two men, described as Chinese, with cameras hiding behind a two-way mirror ahead of the team's key tactical meeting before their clash with China.
FIFA insist the case is closed.
The South Americans, who have played in every World Cup since the tournament's inception in 1991, stormed to a third place finish in 1999 only to crash out in the first round in 2003.
|Burnley 2 Watford 0: Landmark goals for Hendrick and Keane seal first win in four|
|Schmidt lauds hitman Hernandez|
|Klopp not banking on Liverpool winning title|
|Kroos plays down Ronaldo rage rumours|
|Confidence coursing through Copenhagen|
|Madrid form draws no concern for Zidane|
|Burki looking forward to ´dream´ Madrid clash|
|Juve and Higuain have work to do - Allegri|
|CSKA boss Slutski wary of Tottenham threat|
|Pochettino: Kane to return within three weeks|
|City youngster Diaz signs three-year deal|
|Aurier vows to ´continue working hard´ for PSG despite prison sentence|
|Tuchel expecting Ronaldo on top form|
|Ter Stegen eyes new Barcelona deal|
|Hazard: No excuse for Arsenal defeat|
|Cisse back in training with Auxerre|
|Hummels resumes training ahead of Atletico clash|
|Facing Barcelona´s MSN not a nightmare, insists Bravo|
|Thiago: Atletico defence best in the world|
|Alonso wants to end career at Bayern Munich|
|Ranieri went to Slimani for Porto advice|
|Draxler: Wolfsburg blocked my exit|
|Samoura defends abolishment of racism task force|
|Sampaoli backs Nasri for France recall|
|Gisdol ´twitching with joy´ at Hamburg presentation|
|Zanetti determined Inter will return to the top|
|Getafe sack Esnaider|
|Bartra happy with playing time at Dortmund|
|Aurier handed two-month prison sentence over police altercation|
|Klopp attributes Lallana´s fine form to hard work|
|Totti´s wife slams ´small man´ Spalletti|
|Guardiola has already done an amazing job at Manchester City - Alonso|
|Referees attacked by hooligans in Bosnia and Herzegovina|
|Griezmann: I am not the anti-Benzema|
|Sterling hails Guardiola´s role in goalscoring form|
|Champions League Matchday Two: Madrid look for first win in Dortmund|
|Smalling confident Rooney will bounce back|
|Vardy fears ´permanent stain against my name´ following casino incident|
|Brave Wilshere will reap rewards of loan move - Howe|
|MLS Review: Sounders surprise Galaxy, Kamara double sinks New England|
|Walcott a special case - Wenger|
|Guardiola striving for more after perfect 10|
|Chelsea risk another mid-table finish, admits Conte|
|Montella feels AC Milan lacked courage|
|Robben speaks out on injury fears|
|Fiorentina 0 AC Milan 0: Ilicic misses penalty on Montella´s return|
|Gisdol replaces Labbadia at Hamburg|
|Ibrahimovic threatened me over Pogba deal - Raiola|
|Balotelli could make Nice return against Krasnodar|
|Southampton deserved to win – Bilic|
|Podolski takes aim at Mourinho over Schweinsteiger treatment|
|Atletico midfielder Augusto suffers ACL injury|
|Sagna: More to Aguero than goals|
|Errors are urgent matter for Schalke - Weinzierl|
|Puel delighted with sublime Southampton second half|
|Simeone praises ´decisive´ Gameiro|
|Noble: West Ham can´t get any worse|
|Pjanic: I will play wherever Allegri needs me|
|West Ham 0 Southampton 3: Defensive woes pile pressure on Bilic|
|Kondogbia makes the same mistakes often – De Boer|
|Gray backed by Dyche after ban for abusive social media posts|
|Gabriel needs time to get used to Serie A - Ausilio|
|Atletico Madrid´s Gimenez and Augusto doubts for Bayern Munich clash|
|Atletico Madrid 1 Deportivo La Coruna 0: Griezmann downs 10-man Depor|
|Angry Spalletti slams Roma players´ attitude|
|Liverpool have unbelievable quality - Milner|
|Simeone´s son Giovanni scores first Serie A goal|
|Ivanovic: Chelsea let Conte down|
|Inter 1 Bologna 1: Battling Bologna end Inter streak|
|Guardiola: Top-four finish very tough for Man City|
|Rodgers expecting tough test against City and Aguero|
|Zamparini admits Balotelli interested Palermo|
|Former Swansea, Arsenal great Mel Charles dies|
|Asamoah, Rugani ruled out for up to seven weeks|
|Totti reaches 250 Serie A goals in Roma defeat|
|Alves makes LaLiga history as Valencia see off Leganes|
|Guardiola rues De Bruyne injury as Man City await scan|
|Las Palmas draw could prove costly, admits Morata|
|Gabriel explains choosing Inter over Juventus|
|Hamburg dismiss Labbadia|
|West Ham players expect Payet´s free-kick magic - Antonio|
|Man City must tell Guardiola to stop, says Toure´s agent|
|Hamsik thrilled to reach 100 Napoli goals|
|Zabaleta warns Man City over Celtic backlash|
|MLS Review: Red Bulls, Toronto into play-offs|
|´We were unlucky´ - Bale|
|Guardiola keen for Spurs test|
|Rodgers: I never fell out with Sterling|
|Wenger hails ´different´ Walcott|
|Mazzarri backs Deeney for England call-up|
|Mamelodi Sundowns and Zamalek reach CAF Champions League final|