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.
|South Africa international Du Preez joins brother at Sale|
|Pogba and Sterling support my football dream, says Bolt|
|Asensio wants to ´feel more important´ at Real Madrid|
|Former Roosters and Cowboys centre Linnett joins Hull KR|
|New team tournament ATP Cup wins Djokovic´s approval|
|Roma and Pallotta donate €150,000 to injured Liverpool fan Sean Cox|
|England captain Root reprimanded on frustrating day in Pallekele|
|Jokanovic proud of establishing Fulham´s ´footballing identity´|
|Huget to make first France appearance in a year|
|Mourinho and squad ´united´ despite ´mixed´ start, says Woodward|
|Petaia and Gordon to make Wallabies debuts in Padova|
|Barcelona star Arthur determined not to let Xavi praise go to his head|
|Youthful Netherlands have forged strong bond - Wijnaldum|
|Premier League confirms £5m package for departing chief Scudamore|
|Thiem blasts past Nishikori to keep semi-final hopes alive|
|He´s always got time for me – Gerrard loved learning from Liverpool boss Klopp|
|Kearney and Ringrose return for All Blacks clash|
|Molinari on course for Race to Dubai title, Smith and Otaegui lead|
|Premier League to implement VAR from 2019-20 season|
|FSF urges Premier League clubs to reject Scudamore ´golden handshake´ request|
|Rhinos pull off Merrin coup|
|Ribery apologises for reporter altercation|
|Ford to captain much-changed England, Cokanasiga starts|
|Crotty replaces injured Williams for Ireland showdown|
|Classy Roshen gives Sri Lanka unlikely lead|
|Injured Lukaku out of Belgium-Iceland Nations League clash|
|Rooney ´passionate´ about future coaching career|
|Mehidy spins Tigers to victory despite second Taylor hundred|
|Rooney deserves special England day - Antonio|
|LeBron thinks back to his roots after latest milestone|
|Messi to return for Argentina next year - General manager Burruchaga|
|Walton salutes LeBron after he surpasses Chamberlain|
|Croatia´s Dalic and Modric not out for Spain revenge|
|Rondo to miss ´a few weeks´ with broken hand|
|Gabi, Juanfran hopeful over Oblak´s Atletico future|
|England rookie Wilson not comparing himself to Kane|
|WATCH: The baskets that moved LeBron James up the all-time NBA scoring list|
|LeBron moves into fifth on scoring list, 76ers fall in Butler´s debut|
|LeBron James into top five NBA scorers: Five quotes from league legends on his greatness|
|LeBron passes Chamberlain for fifth on all-time scoring list|
|Butler: 76ers need time to gel|
|South Africa lose 28-9 in Windies defeat|
|Delph impressed by ´special´ Sancho|
|Bolt may give up on football career despite ´a lot of offers´|
|We´re better than Dortmund – Wagner urges Bayern to respond|
|Raptors fans give former coach Casey standing ovation in return|
|Martinez hails Hazard leadership|
|Muller going through ´difficult´ period, says Low|
|Betances wants Yankees to sign Machado|
|Rays´ Snell, Mets´ deGrom win Cy Young Awards|
|Dinwiddie to debut Stan Lee-inspired shoes against Heat|
|Iberostar Tenerife and Segafredo Virtus Bologna stay perfect in BCL|
|Rooney wanted to finish career at Manchester United|
|Red Sox give manager Cora contract extension through at least 2021|
|WATCH: Ronnie O´Sullivan hits blue with calamitous break-off shot|
|Matuidi: Mbappe has a great personality, like Ronaldo, Messi and Zlatan|
|Cilic beats Isner to hand Djokovic semi-final spot|
|Mendy undergoes knee surgery|
|Warriors´ Curry will not play during three-game road trip|
|Ramos refuses to retaliate after Lovren jibe|
|Qatar pull off shock win over Switzerland|
|Tuilagi could make England return against Australia|
|Rooney has earned England reward - Sarachan|
|Croatia thrashing means nothing now – Luis Enrique|
|Chelsea and Everton among Arnautovic suitors, claims agent|
|TJ Watt hopes to win NFL sacks race with brother JJ|
|Modric defends Ramos after Lovren comments|
|Southgate hails ´outstanding´ Delph as he talks up England strength in depth|
|No war with Manchester United over Fellaini, insists Martinez|
|Rooney to wear number 10 shirt against USA and receive armband from Delph|