Brazil advanced to the last 16 as they topped Group E with a 1-0 win over Costa Rica that maintained their 100% record in the Women's World Cup so far.
Raquel Fernandes converted Brazil's dominance into victory with a cool finish from Andressa's pass with seven minutes left.
Brazil, hunting their first title, will play Australia in the last 16.
They are joined in the knock-out stages by South Korea who beat Spain 2-1 to secure a qualification spot.
|Women's World Cup 2015|
|Results, fixtures, tables|
|Video, features and latest news|
|How to watch on the BBC|
|Women's WC on the World Service|
Costa Rica ended up third in the group, but their total of two points from Group E was not enough to secure one of four second-round places for teams coming third.
It was a sad end to the Ticos' campaign after their battling display against Brazil was finally undone by Fernandes's careful side-foot shot past goalkeeper Dinnia Diaz.
South Korea made the knock-out stages of the tournament for the first time as they recovered from a goal down to beat Spain.
Captain Veronica Boquete's opener in the first half was cancelled out by Korean counterpart Cho So-hyun after the interval, before an error from Spain goalkeeper Ainhoa Tirapu proved decisive.
Tirapu allowed a looping cross from defender Kim Soo-yun to sail over her head and into the net in the 78th minute, ensuring it would be the Asian side who advance to a meeting with France.
- 16AlvaradoSubstituted forSánchezat 86'minutes
- 7Herrera Monge
- 11Rodríguez Cedeno
- 14BarrantesSubstituted forVillalobosat 72'minutes
- 15GranadosSubstituted forVenegasat 57'minutes
- 1Maria Dionizio
- 13Barbosa Medeiros
- 3Hickmann AlvesSubstituted fordo Nascimentoat 66'minutes
- 16Leone Carvalho Souza
- 6Dias Gomes
- 18Fernandes dos Santos
- 19Dorneles Gonçalves
- 5Cavalari Machry
- 17dos Santos Augusto
- 21Zanotti DemonerSubstituted forde Miranda Travalaoat 78'minutes
- 22de Souza RegueraSubstituted forZaneratto Joãoat 59'minutes
- 2da Silva Simões
- 4de Miranda Travalao
- 7Zaneratto João
- 8de Moraes Rosa Moreno
- 9Alves da Silva
- 10Vieira da Silva
- 11Rozeira de Souza Silva
- 12do Monte Barbosa
- 14do Nascimento
- 15Pereira dos Santos
- 20Maciel Mota
- 23Izidoro Lima da Silva
- Efthalia Mitsi
- Shots on Target