Portugal on Monday advanced to the European Championship quarterfinals after beating Slovenia in a penalty shootout.

The game went the distance after Cristiano Ronaldo’s extra-time spot kick in the 114th minute was saved by Slovenia goalkeeper Jan Oblak.

After the game went to penalties, Ronaldo scored his first, and teammate Diogo Costa saved all three of Slovenia’s kicks. Bruno Fernandes and Bernardo Silva also scored for Portugal to seal the shootout 3-0.