Brazil came through their last-16 match in breathtaking fashion as they beat Chile 3-2 in a penalty shootout in Belo Horizonte.
The host nation earned a meeting with either Colombia or Uruguay after seeing off Chile in a pulsating clash which saw both sides have chances to clinch it.
The teams were deadlocked at 1-1 after extra time, with Alexis Sanchez having cancelled out David Luiz’s opener for Brazil - though whether Luiz should be credited with the goal is a matter of some debate, given that it appeared to be deflected goalward off the shin of Gonzalo Jara.
Brazil went ahead early on in the shootout, but Chile levelled it at 2-2 after four spot kicks - only for Neymar to bury the fifth after a stuttering run-up to make it 3-2.
And Jara once again tasted terrible luck as his final spot kick for Chile rattled against the left post to send the hosts through.
A controversial decision from English referee Howard Webb ruled out a Hulk goal in the second half for use of the arm, while Chile almost won it at the death as substitute Mauricio Pinilla saw his shot cannon back of the bar with Julio Cesar well beaten.
The lottery of the penalty shoot-out saw further drama as Julio Cesar saved from Pinilla and Sanchez, whilst Willian and Hulk both missed for Brazil.
But with the shoot-out set for sudden death, Jara’s miss means that Brazil qualify for the World Cup quarter-finals for the sixth consecutive time.
PRE-MATCH: Hulk, Fred and Neymar all start for Brazil in an extremely attacking line-up and Fernandinho comes in to replace Paulinho in the only change. The good news for Chile is that Medel and Vidal start after missing training through injury on Thursday. Thiago Silva wins his 50th cap for Brazil.
12’ – PENALTY SHOUT BRAZIL: Hulk powers into the box and goes down under a challenge from Isla. Howard Webb is unmoved.
18’ – GOAL BRAZIL: Silva flicks on Neymar’s corner and David Luiz looks to have bundled in his first for Brazil but replays show it came off Jara’s foot. Luiz still claims the goal anyway - that will be one to sort out later.
25’ – CHANCE NEYMAR: He forges into the box and it’s a good chance but he drags his shot wide.
32’ – GOAL CHILE: It’s really slack defending from Hulk who loses out to Vargas. He feeds Sanchez who finishes excellently past Cesar.
35’ – GREAT DEFENDING SILVA: He deflects Oscar’s cross from under Neymar’s nose.
42’ – GOOD SAVE BRAVO: He tips over Alves’ dipping drive.
54’ – HULK GOAL RULED OUT: A really controversial decision from Howard Webb as the ball looks to have come of Hulk’s shoulder from Marcelo’s ball before he slotted home. Instead he is booked.
65’ – GREAT SAVE CESAR: He gets down brilliantly to save from Aranguiz.
74’ – GREAT DEFENDING MENA: He stretches to turn it away as Jo is about to slot home.
83’ – GREAT SAVE BRAVO: Hulk dances through the defence but Bravo palms away his shot destines for the corner.
103’ – GOOD SAVE BRAVO: He blocks out Hulk’s fierce drive.
107’ – CHANCE BRAZIL: A free header for Jo but he heads over from Neymar’s corner.
120’ – PINILLA HITS THE BAR: He almost wins it for Chile but his shot cannons back off the bar.
Brazil have now qualified for the World Cup quarterfinals for the sixth consecutive time. The last time the Seleção missed out the last eight was in 1990, when they lost 1-0 against Argentina.
In each of the four World Cups in which Chile reached the knockout stages (1962, 1998, 2010, 2014), they have been eliminated by Brazil.
Chile never had a World Cup match which went into extra time previously.
Brazil have had six previous matches that went into extra time. They only lost/eliminated in one of these six matches, when they lost the penalty shoot-out against France in 1986.
The three World Cup PSO for Brazil previously: lost against France in 1986 (4-3, miss by Sócrates and Julio Cesar), won 1994 final against Italy and 1998 semifinal against Netherlands.
PSO in World Cup by home nations previously: 1986 Mexico lost against West Germany, 1990, Italy lost against Argentina, 1998 France won against Italy, 2002, Korea won against Spain and 2006, Germany won against Argentina (making it 3 of 5 wins by home nation, now four of six wins after today's match).
David Luiz played his 40th international match and scored his first goal for Brazil.
Brazil have now scored 25 World Cup goals in the round of last 16, most of all countries in World Cup history. Germany are next with 23 goals.
This was Brazil's first goal from a set piece other than a penalty this World Cup.
For the first time since 1998, Brazil conceded a goal in the round of last 16. On 27 June 1998, Chile forward Marcelo Salas was the last player to score against the Seleção in the last 16.
Alexis Sánchez became the first player from Chile to score at least twice in a single World Cup since Marcelo Salas scored four in 1998.
Did Brazil have a penalty? Howard Webb can thank his luck stars Brazil are through as he denied Hulk a goal for the use of his arm. Replays show he may have been right. Just.
MAN OF THE MATCH: Alexis Sanchez (Chile). At the heart of Chile’s most creative moments and scored a great equaliser. A shame that his missed spot kick may have cost his side dear.
Brazil: Julio Cesar 7, Dani Alves 6, Thiago Silva 7, David Luiz 6, Fernandinho 6, Marcelo 7, Hulk 7, Fred 5, Neymar 7, Oscar 6, Luiz Gustavo 6. SUBS: Ramires 6, Willian 6, Jo 6.
Chile: Bravo 7, Mena 7, Isla 6, Silva 6, Sanchez 8, Vidal 7, Vargas 6, Medel 7, Jara 7, Aranguiz 6, Dias. SUBS: Pinilla 7, Rojas 6, Gutierrez 6.