It was not always pretty, but Brazil cleared its toughest hurdle so far at the World Cup, beating Colombia, 2-1, in Fortaleza and advancing to the semifinals.
Brazil calmed its nervous fans with a goal just six minutes in as Thiago Silva found himself unmarked on a corner and pushed in an easy chance.
With the goal in hand, Brazil was able to concentrate on effectively shutting down Colombia's star, James Rodriguez, who came into the game leading all World Cup scorers with five goals.
In the 68th minute of a choppy game, came a sublime moment. David Luiz rocketed in a perfect free kick into the upper corner of the goal from 35 yards out. Brazil led by 2-0 and seemed to be in control.
But Colombia was given new life when Brazil keeper Julio Cesar fouled Carlos Bacca in the box.
Rodriguez duly converted the penalty, his sixth goal of the tournament, and Colombia began to pour on the attacks.
But despite a few half chances, it could not find a breakthrough in the minutes that remained. Brazil advances to face Germany in the first semifinal on Tuesday.