Brazil progressed to the quarterfinals of the 2014 World Cup after narrowly edging past Chile in a penalty shootout at Estadio Mineirao in Belo Horizonte.
David Luiz's first half strike was cancelled out by Alexis Sanchez at the half hour mark and the match went to penalties after neither team could get the winning goal.
The match started with Brazil on the attack as they created an early chance through Marcelo before appealing for a penalty in the 13th minute. Mauricio Isla brought down Hulk in the box but Howard Webb was not convinced as he waved away the protests.
The hosts soon went ahead in the 18th minute through David Luiz. Thiago Silva flicked Neymar's corner towards the back post and David Luiz poked the ball past Claudio Bravo. Although replays suggested that it may have been an own goal by Gonzalo Jara, the goal was credited to Luiz.
However, the Brazilians were not able to maintain their lead for long as Alexis Sanchez grabbed the equaliser in the 32nd minute. Hulk easily gave away possession to Eduardo Vargas and the forward picked out Sanchez, who found the net with a calm finish past Julio Cesar.
The hosts got a lot of chances to regain the lead before halftime but Chile managed to hold on.
Ten minutes into the second half, Hulk found the net, but his goal was ruled out due to offside as he appeared to have used his arm to control the ball.
Chile then upped their energy levels as they threatened to take the lead, with Cesar pulling off a brilliant save to deny Charles Aranguiz at the hour mark.
Jo, who was brought in as a substitute for Fred, had a golden opportunity to restore Brazil's lead in the 75th when he was given a brilliant assist by Hulk. However, he was unable to make contact as the ball went out for a goal kick.
With ten minutes remaining, Neymar was able to connect with a cross from Dani Alves but the striker's header went straight at Bravo. Finally the game was forced into extra time as neither side could get the winner in 90 minutes.
Both sides created very limited chances in extra time, although Chile nearly stunned the hosts by threatening in the 120th minute through Mauricio Pinilla, whose effort was denied by the post.
Finally the game was forced into penalties after the score remained 1-1 after 120 minutes.
David Luiz scored the first penalty for Brazil, while Pinilla's effort was straight at Cesar.
Willian then skewed his effort wide of the post before Cesar made another save to deny Sanchez. Marcelo and Aranguiz then managed to tuck away their respective penalties before Hulk's effort was kept out by Bravo.
Finally Brazil went through after Neymar successfully converted Brazil's fifth, while Jara's effort was denied by the post.
Catch the full Highlights of the match below: