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.
|Rakitic desperate for Iniesta stay|
|Jardim one of the best in the world – Lopes praises Monaco boss amid interest|
|Napoli refusing to give up on Scudetto dream|
|It´s a good time for Iniesta to leave Barca, says father|
|MLS Review: Five-star LAFC, Dynamo headline goal frenzy as Atlanta silence Ibra´s Galaxy|
|Sanchez hails legendary Wenger ahead of Arsenal exit|
|Valverde: Nothing behind Iniesta substitution amid growing CSL links|
|Hoffenheim boss Nagelsmann dismisses Arsenal and Chelsea links|
|Gattuso, Mirabelli apologise to Milan fans after ´embarrassing´ Benevento loss|
|Iniesta to make decision on his future public ´this week´|
|United want to win everything next year, says Wembley hero Sanchez|
|Cardiff edge Forest to boost promotion push|
|Bartomeu confirms Iniesta has an ´offer´ amid Chinese Super League reports|
|Messi second player to score in five Copa finals|
|Mourinho challenges Alexis after Wembley star turn|
|Vieira ready for Arsenal job, says Guardiola|
|FA Cup win would represent successful season - Conte|
|Guardiola: I want Manchester City to be a Premier League machine|
|Sevilla 0 Barcelona 5: Suarez and Messi lead crushing Copa final win|
|AC Milan 0 Benevento 1: Rossoneri suffer again as bottom side stave off relegation...for now|
|Semi-final pain for frustrated Kane|
|London stay was crucial to FA Cup Wembley win - Mourinho|
|Pochettino: Spurs need four more years – with me or another|
|He has not delivered optimal performances - Stoger explains Schmelzer omission|
|Modric open to Ibrahimovic union in MLS|
|Spurs can´t keep doing this – Alli|
|Heynckes highlights importance of ´psychology´ before Real Madrid clash|
|United are about winning titles and playing finals, says happy Herrera|
|Pogba and United the comeback kings again|
|Giroud thanks Wenger for making his ´dream come true´|
|Borussia Dortmund 4 Bayer Leverkusen 0: Reus and Sancho star as Stoger´s side go third|
|Manchester United 2 Tottenham 1: Sanchez and Herrera seal comeback to book FA Cup final spot|
|Zaha´s no diver, insists Hodgson|
|Championship Review: Wolves win title, Sunderland relegated|
|Wilson backs Wenger for international role|
|West Brom comeback branded ´useless´ by Klopp|
|Injured Kyrgios doubtful for French Open|
|Lewandowski breaks Bundesliga record in Bayern Munich victory|
|Watford 0 Crystal Palace 0: Stalemate edges both sides closer to survival|
|Inter not inferior to Roma and Lazio, Spalletti insists|
|Pogba and Sanchez start for Manchester United at Wembley|
|Klopp applauds Ings´ performance|
|Hannover 0 Bayern Munich 3: Lewandowski breaks Bundesliga record|
|Livermore urges West Brom to ´keep fighting´ as relegation looms|
|Klopp blames ´dry pitch´ and referee for West Brom draw|
|Salah finds the net again to equal Premier League scoring record|
|West Brom 2 Liverpool 2: Careless Reds drop points to offer Baggies slim survival hope|
|Roma will be eyeing revenge against Liverpool, warns Ancelotti|
|Bayern hand Bundesliga debut to Lars Lukas Mai|
|Costa should be back for Arsenal second leg, reveals Simeone|
|Wenger could coach Paris Saint-Germain, says Emery|
|Wenger changed the face of English football - Dixon|
|Rodgers shrugs off Arsenal talk|
|Clash between top two ´more decisive´ for Napoli, Allegri claims|
|Chongqing sponsor ´positive´ over Iniesta deal|
|Valverde´s quiet crisis management leaves Barca ready to clean up|
|Vieira ´flattered´ by Arsenal link|
|Wenger was sacked by Arsenal, Wright claims|
|Dyche eager to feature in ´legendary´ Wenger´s Emirates farewell|
|United and City ´a million miles apart´, says Parker|
|Pogba must ´take more responsibility´, says Matic|
|Sporting Kansas City 6 Vancouver Whitecaps 0: Russell stars with hat-trick|
|I don´t fear the challenge – Klopp eager to close gap to City|
|Everybody wants to play under him – Ozil pays tribute to Wenger|
|Conte defends Chelsea record compared to Mourinho|
|LaLiga strugglers Espanyol show Flores the door|
|Messi is an alien but Sevilla can bring Barcelona back down to Earth, insists Montella|
|Reims´ latest vintage secure promotion to Ligue 1|
|Millwall 0 Fulham 3: Sessegnon on target as Jokanovic´s side go second|
|Ancelotti welcomes Arsenal links, praises Wenger decision|
|I think Arsenal would be good for a German coach - Podolski|
|Wilshere, Ramsey, Mertesacker and the best social media reaction to Wenger´s Arsenal departure|
|Exeter left ´disappointed´ by Ampadu transfer verdict|
|Copa del Rey glory a good way to put European exit behind us, says Valverde|
|LMA hails Wenger´s impact at Arsenal|
|Wenger passes the torch as Arsenal face up to his formidable legacy|
|Gazidis: Arsenal cannot replace Wenger – we need a new path|
|Van Bronckhorst using Wenger´s methods at Feyenoord|
|I´d break another finger to win the Copa del Rey - Rakitic|
|Arsene Wenger: The Arsenal manager´s worst moments|
|Wright: More Arsenal changes needed after Wenger exit|
|Guardiola wishes Iniesta the best ahead of potential Barcelona exit|
|Real football people appreciate Wenger - Moyes, Warnock and more pay tribute|
|Guardiola set for contract talks with Manchester City|
|Liverpool top, DVDs just invented and no Harry Potter – The world when Wenger joined Arsenal|
|Heynckes cannot compare Lewandowski and Ronaldo|
|Ronaldinho, Ronaldo, Messi, Mbappe and more – the stars Wenger claims he could have signed|
|Ferguson: Rival, colleague and friend Wenger is one of the greatest|
|Gattuso wary of challenge for Milan´s European place|
|Wembley no advantage for Spurs in semi-final, warns Mourinho|
|Neuer returns to Bayern training after seventh-month absence|
|PSG, Monaco, the CSL, France? - Wenger´s possible next moves|
|Wenger ´an example´ to foreign Premier League managers like Benitez|
|Wilshere: Wenger is like a father|
|Guardiola wants Wenger to find new role in football|
|Henry: Wenger´s Arsenal legacy is untouchable|
|Mourinho: Wenger feud shows how much I respect him|
|Conte: Top four still possible for Chelsea|
|Aguero out for the season - Guardiola|
|Wenger´s 22-year Arsenal tenure will not be matched, says Conte|
|Celtic would let Rodgers move to Arsenal|
|Squillaci, Cech & Wenger´s worst signings at Arsenal|
|Heynckes: I cannot imagine Wenger at another club|
|Thank you Arsene - Emery pays tribute to Wenger|
|Fabregas and Van Persie join tributes to Arsenal boss Wenger|
|1,228 matches and seven FA Cups - Wenger at Arsenal in Opta numbers|
|Mertesacker ´emotional´ as Wenger announces Arsenal departure|
|Ancelotti, Tuchel, Henry – Where do Arsenal turn after Wenger?|
|Klopp doesn´t want Liverpool to chase Golden Boot for Salah|
|´The Arsene Wenger Stadium´ - Former Arsenal players call for tribute|
|Wenger was so good ´it was scary´, says Merson|
|I fell in love with playing for Wenger - Winterburn|
|Van der Sar urges Kluivert to continue Ajax development|
|Klopp pays tribute to ´outstanding´ Wenger|
|Wenger´s consistency will never be matched – Kroenke hails Arsenal manager´s legacy|
|Arsene Wenger: The Arsenal manager´s best moments|
|Vieira, Henry and Wenger´s best signings at Arsenal|
|Wenger to stand down as Arsenal manager|
|Ibrahimovic not in Sweden´s plans despite latest World Cup hint|
|Rafinha confident over fresh Bayern deal|
|Perth Glory sack Kenny Lowe|
|Copa Libertadores Review: Lopez misses two penalties as Racing crush Vasco|
|Gunes hospitalised after suffering head injury in abandoned Fenerbahce-Besiktas clash|
|Thiago Silva eyeing PSG exit amid criticism|
|Premier League or Champions League title will take Spurs to ´different level´ – Pochettino|
|Klopp: Bayern Munich move would´ve been complicated|
|Wenger names Vieira as potential Arsenal successor|
|Simeone demands more alert Atletico to solve away day problems|
|Malaga relegated from LaLiga after late defeat|
|Conte reaches 100 Chelsea games with win at Burnley|