RECIFE, Brazil — One of the first things Miguel Herrera did when he became Mexico's fourth coach in a year was call Rafael Marquez and ask the 35-year-old defender known as "the boss" to return to the national side as captain.
On Monday, the world saw why.
Marquez's pivotal goal from a header in the 72nd minute ignited a scoring burst, and Mexico surged into the World Cup's knockout stage for a sixth straight time with a 3-1 triumph over Croatia.
"I did not hesitate one minute after my talk with him to appoint him captain," Herrera said of Marquez, now in his fourth World Cup. "He's had many achievements in his career, personally, but he's also provided leadership to the team, that soundness, and that is why they call him the boss."
Marquez, Andres Guardado and Javier "Chicharito" Hernandez scored in a 10-minute span in the second half, dooming a talented Croatia side to elimination from the group stage.
The Croats had to win to advance and held the bulk of possession, but had trouble seriously threatening goalkeeper Guillermo Ochoa, who kept out all efforts until an 87th-minute consolation goal from Ivan Perisic.
Mexico entered the game needing only a draw, but played aggressively and looked dangerous in attack even before breaking through. The result gave Mexico a second-place finish behind Brazil in Group A and set up a second-round meeting with Group B winner the Netherlands.
"We overcame the first hurdle," Miguel Herrera said, adding that the team would dine with their families in Recife later Monday night. "We're going to celebrate tonight but tomorrow we have to start thinking of our match with the Netherlands."
Marquez, who had scored in Germany in 2006 and South Africa four years ago, made it three straight World Cups with a goal by beating Croatia defender Vedran Corluka to head home Hector Herrera's corner.
"They wanted him to retire, and look at him," Guardado said. "He plays like he's 23"
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, 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.
"Mexico was equal in the first half. We tried to (attack) and left spaces in the second half," Croatia defender Danijel Pranjic said. "They scored on set plays and Marquez killed us."
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's a moot point whether we should have kept it nil-nil until the last 10 minutes and then go all out on the attack," Croatia coach Niko Kovac said. "We decided to attack earlier, but it wasn't successful."
Croatia's late goal was the first 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.
"Today we felt as if we were playing at home in Mexico," Miguel Herrera said.
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 rescued Mexico's hopes. El Tri made it to Brazil as CONCACAF's fourth team after soundly beating New Zealand in a last-chance qualifier.
Marquez was quick to credit his energetic coach for unifying the national team in a way he'd never seen before.
"Officials, the coaches, the players have shown this unity and it is quite important," Marquez said. "We've shown this on the pitch and off, and that is why we have such a sound, robust group. We get along very well. ... We're all united. We're working together, and therefore you work comfortably, with joy."
Known as a coach of the people for the way he engages fans on social media and at times in public, Herrera 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, belted out a thunderous rendition.
Croatia players were heckled each time they took a corner kick, as was goalkeeper Stipe Pletikosa when he touched the ball.
Mexico's counterattacks only further enlivened the crowd, particularly a sizzling 25-yard shot by Hector Herrera that rattled the crossbar in the 16th minute.
Brazil 4, Cameroon 1
At Brasilia, Brazil, Neymar lived up to the expectations of the World Cup host nation, scoring two goals as Brazil reached the knockout stage as the top team in Group A.
The 22-year-old forward netted twice in the first half, on either side of midfielder Joel Matip's goal for Cameroon in the 26th minute.
Fred and Fernandinho added second-half goals for Brazil, which will face South American rival Chile in the second round.
Neymar opened the scoring off a low cross by midfielder Luiz Gustavo in the 17th, deftly side-footing the ball home from close range, then restored the lead with a low right-foot strike from the top of the penalty area in the 35th after a pass by left back Marcelo.
Brazil finished Group A with seven points after two wins and a draw. It ended with the same points as Mexico, but had a better goal difference.
Playing in its 100th World Cup match, Brazil needed at least a draw to advance. Elimination in the group stage would have been unthinkable for the five-time world champions playing at home. The only team to play in all 20 World Cups, Brazil has advanced to the second round in every tournament since 1970.
Netherlands 2, Chile 0
At Sao Paulo, Leroy Fer scored a minute after coming on as a substitute to help give the Netherlands a victory over Chile and seal the top spot in Group B with its third consecutive win.
Fer had just replaced Wesley Sneijder when he rose almost unmarked in the Chile penalty area to put the Dutch ahead with a powerful 77th-minute header. Another substitute, Memphis Depay, tapped in a cross from Arjen Robben in stoppage time to double the lead.
Both teams had already advanced to the second round, but Chile's first loss of the tournament consigned it to second place in the group.
The Dutch now travel to Fortaleza to play Mexico, which finished second in Group A behind Brazil.
Spain 3, Australia 0
At Curitiba, Brazil, Spain, the 2010 champion, salvaged some World Cup pride with a lopsided win over Australia in its last match at the tournament.
After losing their previous matches in Group B to the Netherlands and Chile, both teams went into the match knowing they could not advance to the second round.
David Villa, on his 97th and final appearance, put Spain ahead in the 36th minute with his record 59th goal, guiding Juanfran Torres' pass into the net with the inside of his right foot. Juanfran had been found by a typically incisive pass by Andres Iniesta.