Bryan Ruiz calmly guided 10-man Costa Rica through a tense penalty decider against Greece on Sunday 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.
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.
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.
Keylor Navas; Cristian Gamboa (Johnny Acosta 77), Oscar Duarte, Giancarlo Gonzalez, Michael Umana, Junior Diaz - Bryan Ruiz (capt), Yeltsin Tejeda (Jose Cubero 66), Celso Borges, Christian Bolanos (Randall Brenes 83) ; Joel Campbell
Penalty scorers: Celso Borges, Bryan Ruiz, Giancarlo Gonzalez, Joel Campbell, Michael Umana
Yellow card: Oscar Duarte (42), Yeltsin Tejeda (48), Esteban Granados (56), Bryan Ruiz (70), Keylor Navas (90)
Red card: Oscar Duarte (66)
Orestis Karlezis; Vasilis Torosidis, Konstantinos Manolas, Sokratis Papastathopoulos, Jose Holebas; Dimitrios Salpingidis (Theofanis Gekas 69), Andreas Samaris (Konstantinos Mitroglou 58), Georgios Karagounis (cap), Ioannis Maniatis (Konstantinos Katsouranis 78), Lazaros Christodoulopoulos; Georgios Samaras
Penalty scorers: Konstantinos Mitroglou, Lazaros Christodoulopoulos, Jose Holebas
Yellow card: Andreas Samaris (36), Konstantinos Manolas (72)
Referee: Benjamin Williams (AUS)