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.
|Melvin, Snitker win manager of the year awards|
|Warriors´ Green suspended for Hawks clash|
|Asensio: It´s not for me to lead Madrid|
|Rooney ready to enjoy England farewell after pressure of ´Golden Generation´|
|Ludwigsburg stun high-flying Murcia in BCL|
|Rams v Chiefs moved to LA due to Mexico City field conditions|
|Skriniar discussing new Inter contract, confirms agent|
|Former Barcelona boss Martino named MLS Coach of the Year|
|Bell fails to report to Steelers, will sit out rest of season|
|Federer back on track after dismal Thiem display|
|Udinese appoint Nicola after sacking Velazquez|
|Monaco deny they broke rules regarding youth recruitment|
|Del Bosque, Zidane, Lopetegui - The former Castilla coaches Solari follows into Real Madrid hot seat|
|Ozil rejected ´crazy offers´ from Asia, reveals agent|
|Real Madrid appoint Solari on permanent basis|
|LeVert avoids need for surgery, should return this season|
|Neuer confident despite concerns over Bayern Munich form|
|All I ever wanted to do is win, says Sixers signing Butler|
|Pogba: Coming home to United was the best feeling ever|
|Watson among four signing new Bath deals|
|Susanna Dinnage to replace Scudamore as Premier League chief executive|
|Murray commits to Brighton until 2020|
|Rooney rejected chance of pre-World Cup farewell|
|Impressive Anderson thrashes Nishikori|
|Ozil´s Germany absence a ´pity´, says Sane|
|Rooney: I´ll finish my career in the US|
|McIlroy unsure of 2019 European Tour membership|
|Australian Open dismisses concerns of Federer scheduling bias|
|Hue Jackson joins Bengals staff as ´special assistant´|
|Real Madrid confirm Reguilon injury|
|Higuain handed two-match ban for Juve meltdown|
|Kruis ruled out for England as Jones calls up uncapped quartet|
|A year on from Italy failure, Ventura leaves Chievo after four games|
|Bairstow misses out as unchanged England promote Stokes|
|Recalled Alba denies Luis Enrique bust-up|
|´Unhappy´ Christensen won´t push for Chelsea exit|
|Nadal to make Abu Dhabi comeback in December|
|Taijul helps Bangladesh tighten their grip despite Taylor ton|
|Neymar joining Real Madrid wouldn´t hurt Iniesta|
|It´s just team spirit - Livingston not worried by Durant-Green exchange|
|Trippier out of England squad with groin injury|
|Ex-Sri Lanka international Lokuhettige charged by ICC|
|Former England and Chelsea star Joe Cole retires|
|Nets offer support to LeVert following serious leg injury|
|Panenka proud Sergio Ramos imitates his penalties|
|Liverpool´s Alisson seeks patience to reach potential|
|Anthony Davis leads Pelicans, Clippers hold off Warriors in OT|
|Lindelof rues international break for Man Utd|
|Shaqiri confident in more goals for Liverpool|
|Giants too good for 49ers in crunch time|
|Southgate named honorary Yorkshireman|
|Nicky Butt: Manchester United are low on confidence|
|Criticism of Barcelona star Dembele is overblown - agent|
|Thibodeau discusses Butler trade: We thought this was the best deal for us|
|Acuna, Ohtani win rookie of the year awards|
|LeBron James on Lakers’ early season struggles: ‘I almost cracked’|
|Welbeck has successful second operation on broken ankle|
|UEFA warns FFP cases can be reopened based on ´new information´|
|Foakes to keep England place for second Test|
|WATCH: Rooney looking sharp in England training return|
|Mbappe: Money in football is truly indecent|
|Djokovic back to brilliant best as Isner is beaten|
|Celta Vigo replace Mohamed with Cardoso after Real Madrid defeat|
|Joshua intrigued by Usyk, says Hearn|
|Ibrahimovic beats Rooney to MLS Newcomer award|
|Rams WR Kupp out for season with torn ACL|
|Sturridge denies ever gambling on football following FA charge|
|Koeman understands De Ligt´s Eredivisie frustrations|
|Jimmy Butler trade: 76ers acquire Timberwolves star in blockbuster deal|
|´Improve your attitude´ - Deschamps issues Dembele warning|