Mexico ended its Confederations Cup campaign with a 2-1 victory over Japan at the Estadio Mineirao in Belo Horizonte. Follow GOAL.COM on Twitter
A double from Javier Hernandez in the second half propelled El Tri to a two-goal lead in a game initially dominated by its Asian opponents.
Shinji Okazaki tapped home with four minutes to go to ensure a nervy ending, while Hernandez failed to complete his hat trick, lashing a late penalty against the bar.
With both sides already eliminated from the eight-team tournament, both coaches opted for a couple of changes, with the likes of Guillermo Ochoa handed a start in goal for Mexico, and Hajime Hosogai coming in for the suspended Makoto Hasebe in midfield for Japan.
Alberto Zaccheroni's men might've suffered elimination in a classic encounter against Japan on Wednesday, but they started in the same attacking mindset with Shinji Kagawa forcing Ochoa into a smart save inside five minutes.
Moments later, the Samurai Blue also had a goal disallowed amidst a bright opening. Yasuhito Endo's long-range effort took a slight deflection off Shinji Okazaki and past Ochoa, though the German officials had correctly ruled out the strike.
El Tri took its time to find its rhythm in what was effectively a dead-rubber, but it too created a number of clear-cut opportunities towards the end of what had been up to that point, a rather disappointing first half for the CONCACAF champions. Jorge Torres' superb delivery picked out Andres Guardado, and the Valencia player's free header cannoned off the post, with Eiji Kawashima well beaten.
Jose Manuel de la Torre's men threatened to take a rather undeserved lead though Jesus Zavala's long-range effort, whose pinging effort saw Kawashima almost caught out as the first half ended in a late flurry of action.
El Tri began the second half much more positively and should've taken the lead. Giovani dos Santos cut in from the right and produced a stinging effort which would be brilliantly blocked by Hosogai. From the resulting corner, Raul Jimenez saw his header goalwards thwarted by the goalkeeper.
But Mexico continued the pressure, and was rewarded with the opener with Japan floundering. A fine delivery from the left by Guardado saw Hernandez capitalize on some lax defending to power home on 54 minutes.
Japan showed signs of intent following that setback, and was close to earning a reprieve. Ryoichi Maeda's left-footed drive flashed wide of the post, before Guillermo Ochoa hurriedly denied Shinji Okazaki, but they were to fall further behind once more. Another set piece was flicked on, towards Hernandez, who doubled his tally with an easy header on 66 minutes.
For all of its perseverance, Japan was not to be denied, as Okazaki made it 2-1 with five minutes to go. Kagawa and Endo combined, with the latter squaring for the forward to beat Ochoa finally.
Hernandez had the chance to seal a treble after being pulled down by Atsuto Uchida, but the Man United striker saw his penalty saved by Kawashima, before his rebound crashed off the woodwork in late drama.
Follow GOAL.COM on Twitter