Recife (Brazil): Bryan Ruiz calmly guided 10-man Costa Rica through a tense penalty decider against Greece and into the World Cup quarter finals for the first time in the country's history.
The Ticos' captain scored the goal that put Costa Rica ahead and also put away his penalty as the Central Americans kept their nerve to win the decider 5-3.
Costa Rica's forward and captain Bryan Ruiz celebrates after scoring during the penalty shoot out after extra-time in the Round of 16 football match between Costa Rica and Greece at Pernambuco Arena in Recife during the 2014 FIFA World Cup. Pic/AFP
The two sides were 1-1 after regulation time with Sokratis Papastathopoulos cancelling out Ruiz's goal in injury time to force extra time which also ended in deadlock.
Fanis Gekas missed Greece's fourth penalty and Michael Umana converted Costa Rica's fifth to seal the historic victory.
Catch all the FIFA World Cup 2014 action here
Costa Rica looked on target to pick off a new European scalp when in the 52nd minute Christian Bolanos found Ruiz on the edge of the penalty area and the skipper turned the ball into the net.
The shot by Ruiz, whose headed goal sank Italy in the key Group D clash, was not powerful. But Greek goalkeeper Orestis Karnezis and his defence seemed to stand still and watch it go by.
The goal brought Greece out of their shells and the pressure began to tell on the Costa Ricans.
Oscar Duarte brought down Jose Holebas in the 62nd minute and his second yellow card meant his immediate expulsion.
Greece poured forward but still Costa Rica held on and believed the game was theirs when Papastathopoulos struck in the second minute of injury time.
Gekas fired in a low shot which Keylor Navas could not hold and the Borussia Dortmund defender hit in an easy rebound.
Photos: 'Dangal' girls Sanya Malhotra, Fatima Sana Shaikh's dinner outing
Photos: Salman Khan, Daisy Shah spotted at the Mumbai airport
Photos: Rakhi Sawant to play Honeypreet in Ram Rahim biopic
Photos: Arvind Kejriwal asks Kamal Haasan to join politics
Photos: TV actress who played goddesses on the small screen