Brazil are through to face Belgium or Japan in the World Cup quarter-finals, after beating Mexico 2-0 in Samara.
The Selecao finished ahead of Switzerland and Serbia to top Group E, while a final day loss to Sweden saw Mexico fall to runners-up in Group F.
It was the Central American side who started the better though, with Inter defender Miranda forced to block from Hirving Lozano after fine work from Andres Guardado.
Watch Serie A live in the UK on Premier Sports for just £9.99 per month including live LaLiga, Eredivisie, Scottish Cup Football and more. Visit: https://www.premiersports.com/subscribenow