It was also the 51st hat-trick in World Cup history, but it might not be the last as the finals jumped into life on Friday.
Costa netted again 10 minutes into the second half to bag his second, and Nacho produced an incredible swerving strike just three minutes later to give Spain the lead for the first time in the game. With his side 3-2 down in the final minutes of the match, Ronaldo stood over a dead ball, pulling his shorts high on his right thigh as if to provide himself with as much torque as possible.
While Spain bossed possession, Portugal always looked a threat on the break, although young PSG attacker Gonçalo Guedes failed to make the most of a couple of promising attacks.
There was little he could do about Ronaldo's stunning third - the defining moment of the game - but the lasting emotions from Spanish supporters in the aftermath was one of fury towards their keeper. Earlier, he had already been criticized for not saying whether he would continue at Real Madrid after the World Cup.
Boring Company OK'd to Build Loop from the Loop
After 40 years of incremental innovation in transportation, most of it from outside the United States , "I'm all for it", he said. The fare would be about $25, less than the average $45 taxi trip but more than Chicago's current Blue Line route from O'Hare.
"We have to think match by match", Ronaldo added.
That said, a number of fans watching the action at home are convinced Ronaldo was in fact taking a shot at De Gea.
How could you not want to swap any of your players for Ronaldo?
Portugal threatened on counterattacks as Spain struggled to get near Rui Patricio's goal, but a great long pass by Sergio Busquets allowed Costa to even the match. The striker collided with Pepe and used several neat moves to clear other defenders before firing a low shot into the corner from inside the area. The Iranian soccer team can thank their goalkeeper for an excellent save against Hakim Ziyech's shot on target.
Despite the draw against Portugal, Spain dictated the tempo in their 2018 debut game and statistics confirm their on-field dominance. The ball struck the post before going into the goal.
Portugal were starting to look leggy now, as Spain looked set to secure what looked like a deserved victory.