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.
|Wood replaces injured Stone in England squad|
|Lebanon 4 North Korea 1: Disciplinary record cruelly denies Radulovic´s men|
|Saudi Arabia 0 Qatar 2: In-form Ali bags brace as Qatar top group|
|Robertson signs new Liverpool deal|
|Vunipola backs Farrell to thrive in solo leadership role|
|People don´t know what´s going on behind the scenes - Mourinho defends United stint|
|Indefatigable Muguruza knocks out Konta at 3:12am|
|Serena coasts, difficulties for Halep and Muguruza´s marathon|
|Lowry retains Abu Dhabi lead|
|Djokovic battles past Tsonga, young guns flourish|
|Louisville airport to be renamed in Muhammad Ali´s honour|
|Emery not thinking about Ozil speculation|
|Sri Lanka hopeful over Kusal Mendis finger injury|
|Oman 3 Turkmenistan 1: Last-gasp Al-Musallami guarantees progression|
|Emery wants Cech to end career ´in a good moment´|
|Japan 2 Uzbekistan 1: Shiotani stunner seals comeback and top spot|
|Calhanoglu deal ´financially impossible´ for Leipzig|
|Not seen at Aus Open since Nadal, Djokovic and Murray in 2009 – ´Next Gen´ make move|
|Martial: Solskjaer lets me express myself|
|Djokovic sees off Tsonga to reach third round|
|Returning Cousins calls Warriors ´the most hated team in sports´|
|Halep injury ´nothing dangerous´|
|Warner picks up elbow injury in Bangladesh|
|Mkhitaryan returning to Arsenal training next week|
|Leeds United pounce for Real Madrid goalkeeper Casilla|
|Watson lights up Gabba before power cut forces abandonment|
|Superb Serena blows Bouchard away|
|Tevez, Hulk, Oscar, Lavezzi - how the CSL stars Dembele is following to China fared|
|Thiem retires from Australian Open|
|Osaka ´not telling´ when it comes to injury niggle|
|Fabinho enjoying Klopp´s management style|
|Halep battles past Kenin in Melbourne|
|Hartley to miss England´s Six Nations opener|
|Dembele departs Spurs for Guangzhou R&F|
|Nacho convinced Isco remains important to Real Madrid|
|Warriors star Curry sets NBA record|
|Raonic survives four-hour marathon against Wawrinka|
|Osaka powers through to Aus Open third round|
|Irving dominates in Celtics´ win over Raptors|
|Irving called LeBron this week to apologise|
|Ajax star De Jong wants to resolve future ´quickly´|
|Payton on Rams CB Peters: I have great respect for him|
|Rockets star Harden matches Chamberlain with historic performances|
|Nishikori survives Karlovic test in Melbourne|
|Vieira reunion felt really weird - Henry|
|´#BetAgainstUs´ - Edelman and Pats embracing underdog status|
|Van der Vaart: Isco the best player in the world|
|I haven´t seen Guardiola or Klopp do that – Lampard unhappy with Bielsa|
|Real Madrid always play to win, insists Casemiro|
|Royals pitcher Skoglund suspended for 80 games after testing positive for PEDs|
|Ronaldo and Juve celebrate Supercoppa Italiana title with Mayweather|
|We are not going to talk about Morata - Simeone reluctant to discuss striker|
|Madrid weak in Leganes loss, says Solari|
|Bologna and Banvit seal Champions League play-off spots|
|LeBron James to miss Thunder & Rockets games but nearing practice return|
|Leganes 1 Real Madrid 0 (1-3 agg): Isco starts as Solari´s side go through despite defeat|
|NFL playoffs 2019: X-factor for each NFC team|
|Mahomes: Chiefs must not repeat mistakes against Patriots|
|Higuain´s Supercoppa benching due to virus, says Milan boss Gattuso|
|Brown fires back at Arians over ´diva´ comments|
|Stone heading home from West Indies tour with back injury|
|Shazier will continue rehab with intention of playing again|
|That´s why we signed him! Allegri hails Supercoppa match-winner Ronaldo|
|Monaco on worst home run in club´s history after Nice draw|
|Atletico Madrid 3 Girona 3 (4-4 agg): Simeone´s side out on away goals|
|Gregg Williams is Jets´ new defensive coordinator|
|Ronaldo: Supercoppa triumph just the start for Juve|
|Monaco confirm Batshuayi talks|
|You know more than me! Bielsa´s Barcelona research surprised Guardiola|
|Juventus 1 AC Milan 0: Ronaldo heads Bianconeri to Supercoppa glory|