Alexis Sanchez made his Chile return as his nation overcame Mexico 1-0 in a friendly on Tuesday.
In his first appearance for Chile since March, Sanchez enjoyed some good moments in Santiago de Queretaro.
But while he was unable to provide the goals coach Reinaldo Rueda wanted, he helped set up Nicolas Castillo's 89th-minute winner for Chile.
Castillo capitalised on a parry by Mexico goalkeeper Hugo Gonzalez to score just his second international goal.
Mexico made a bright start before Chile almost took the lead after a quarter of an hour, Mauricio Isla firing wide from inside the area after an Arturo Vidal pass.
The opening half-hour was largely open, and the hosts went close through Marco Fabian, whose low side-footed strike was pushed away by Brayan Cortes in the 19th minute.
Both teams lacked a final pass, with Sanchez twice wasting decent opportunities to provide for Chile.
However, Sanchez created a great chance for the visitors seven minutes before half-time, the Manchester United attacker setting up Junior Fernandes, who was denied by a brilliant low save by Gonzalez.
It was Mexico who started the second half well, and Raul Jimenez put a header over the bar in the 49th minute.
Gonzalez kept the hosts level midway through the second half, diving to his left to push away an Angelo Sagal header after Sanchez had released Eugenio Mena to cross.
Paulo Diaz had an effort ruled out for offside with 14 minutes remaining, but Chile found a winner.
Sanchez's well-weighted touch set up Castillo, whose 20-yard strike was parried by Gonzalez, the striker getting to the rebound quickest to tuck away the winner.
¡Finalizó en Querétaro! #LaRoja triunfó ante @miseleccionmx por 1-0 y sigue con su preparación para los próximos desafíos internacionales.— Selección Chilena (@LaRoja) October 17, 2018
¡A seguir por este camino, muchachos! #VamosChile pic.twitter.com/zkRnVbnhmf
What does it mean: Chile still struggling in attack
Sanchez's return provided Rueda's side with a spark, but they still reached no great heights in attack. Chile have now scored just eight goals in eight games since the start of the year.
Sanchez shows good signs
Already under fire for his club performances this season, Sanchez was good in different patches against Mexico. While his final pass was lacking at times, he also set up one of Chile's best chances for Fernandes before having a hand in the winner.
Chile give Rueda much-needed win
Rueda took charge of Chile in January, but the win was just his third from eight games in charge. Castillo's late winner was a much-needed one for Rueda as Chile look for form and confidence with the Copa America just eight months away.
Mexico will face Argentina in two friendlies next month, while Chile take on Costa Rica and Honduras.
|Richarlison: I want to be at the Copa America|
|Tabarez buoyed by inexperienced Uruguay|
|Howell fires 64 again to extend RSM Classic lead|
|I´m proud of them - Giggs still upbeat despite Denmark defeat|
|Mancini ´very sorry´ for Ronaldo absence|
|Neymar clinches anything-but-friendly win for Brazil over Uruguay|
|Cipriani-inspired Gloucester thrash Tigers|
|Djokovic makes it three wins from three at ATP Finals|
|Germany relegated from Nations League top tier to cap miserable 2018|
|Fulham will back Ranieri in January transfer window if required|
|Brazil 1 Uruguay 0: Neymar penalty settles tight contest|
|Netherlands 2 France 0: Wijnaldum & Depay decisive as Germany are relegated|
|Wales 1 Denmark 2: Jorgensen and Braithwaite seal Nations League promotion|
|Oxlade-Chamberlain targeting early return|
|New Zealand-born Aki will ´relish´ facing All Blacks – Marmion|
|Portugal cannot focus on absent Ronaldo - Santos|
|Ramsey reiterates he wants to stay with Jaguars despite cryptic tweet|
|We tried to hit a home run and it didn´t work out - D´Antoni explains Carmelo exit|
|West Ham´s Zabaleta backs Premier League´s VAR introduction|
|Southgate eyes winning end to England´s ´brilliant year´|
|Patient Zverev seizes opportunity to make amends at ATP Finals|
|Rodgers: Packers still believe they can make playoffs|
|Mahomes hoping to ketchup to Heinz´s touchdown target|
|Ranieri tells Fulham fans not to expect repeat of Leicester ´fairytale´|
|Brown to leave role as RFU chief executive|
|Croatia star Rakitic ruled out of England clash|
|Capital gains for Zverev as he secures last-four spot in London|
|Sancho rise continues with Player of the Month award|
|Jones-Buchanan, Ablett and Briscoe sign new Rhinos deals|
|Root leads from the front as aggressive England assume control|
|Croatia´s Lovren antagonises Ramos and ´rude´ Spain|
|Rakitic has ´enormous respect´ for England ahead of Nations League decider|
|Ireland make flanker switch with Leavy out of All Blacks clash|
|Pakistan rip through Black Caps in Abu Dhabi|
|WATCH: Barcelona mark 15-year anniversary of Messi´s first match|
|Sterling, that you? - Walker uses falling fan to poke fun at England team-mate|
|Fleetwood applies pressure on Molinari, Wallace leads in Dubai|
|Don´t talk to me about VAR – Rakitic not over World Cup final loss|
|Van Dijk leadership essential for Liverpool – Wijnaldum|
|Dalic: Croatia´s bench was ready to stop Spain!|
|Sublime Root century gives England imposing lead|
|Vinicius appreciates Solari influence at Real Madrid|
|Havertz would suit Bayern Munich – Kimmich|
|Wilder: Roach recruitment a sign of Fury nerves|
|Ranieri targets defensive improvements at failing Fulham|
|PSG close investigation into player recruitment practices after finding no discrimination|
|Mayweather: Nasukawa exhibition back on|
|Witsel: Joining Borussia Dortmund my best career decision|
|Ballon d´Or win would not change Modric´s ´best year´|
|Ireland v New Zealand: Opta stats behind the meeting of the world´s top two|
|The Breakdown: A statistical look at Saturday´s rugby internationals|
|Batshuayi dismisses reports of Valencia departure|
|Brazil must make Copa America final – Tite|
|Rockets rout Warriors as Green goes scoreless|
|Seahawks rally past Packers|
|Lakers G Rondo to miss 4-5 weeks|
|Durant is done with questions about Green|
|Smith, Warner set to return to IPL in 2019|
|No rivalry between Mbappe and Griezmann – Deschamps|
|Neymar: Emery will bring success to Arsenal|
|Jedvaj backs Croatia to deliver against England|
|Howell grabs first-round lead at Sea Island|
|Rooney backing Kane to break England record|
|Betts named American League MVP|
|Republic of Ireland must improve, says under-pressure O´Neill|
|Injured Sergio Ramos to leave Spain squad|
|Yelich named National League MVP|
|Low praises ´beautiful goals´ from Sane and Gnabry|
|Belgium boss Martinez pleased with patient Batshuayi|
|Wilson and Sancho pay tribute to England ´legend´ Rooney|