Marquez struck first, beating Croatia defender Vedran Corluka to head home Hector Herrera's corner kick in the 72nd minute. Three minutes later, Guardado found the net with a hard, left-footed, one-time shot after a cross from Oribe Peralta. Then in the 82nd minute, Hernandez, the popular Manchester United striker who has been a second-half substitute in all three of Mexico's matches, scored with a header after Herrera's corner had glanced off the head of Marquez.
Croatia didn't score until it was too late, with Perisic sliding a shot past Ochoa after being set up by a neat backheel pass from Ivan Rakitic. It was the first goal Mexico has conceded in the World Cup, but El Tri hardly seemed to mind when the final whistle sounded and a lively, heavily Mexican crowd in Arena Pernambuco erupted.
Mexico appeared to be laboring through a downspell before this World Cup. It struggled just to qualify out of CONCACAF and fired three coaches in a year's time before Miguel Herrera took over and ultimately rescued Mexico's hopes by soundly beating New Zealand in a last-chance qualifier. In the hours leading up to the match, Miguel Herrera, known as a coach of the people for the way he engages fans on social media and at times in public, implored the Mexico faithful to ''stay together'' and sing the national anthem ''like never before.''
Mexican fans, whose green jerseys distinguished them as the overwhelming majority in the crowd, did not disappoint, belting out a thunderous rendition. Croatia hadexpected to play before a crowd heavily in Mexico's favor, with star Real Madrid midfielder Luka Modric saying on the eve of the match that the game would not be won in the stands, and that his side was motivated to silence the crowd.
Croatia players were heckled each time they took a corner kick, and goalkeeperStipe Pletikosa was heckled whenever he touched the ball. Mexico's attacking play also enlivened the crowd, particularly a sizzling 25-yard shot by Hector Herrera that rattled the crossbar in the 16th minute.
In the 19th, Oribe Peralta pounced on a bounding ball from Herrera in the penalty area, but his sliding attempt to chip over the advancing Pletikosa went wide. Croatia enjoyed the bulk of possession in the opening 45 minutes, but didn't force Ochoa to make a single save.