The roster for the 2018 FIFA World Cup in Russia is almost complete, with Argentina and Portugal joining the list of qualified countries.
Lionel Messi scored a hat-trick as Argentina rallied from a goal down against Ecuador to qualify for the showpiece.
The South American giants entered the last day of games in 6th place, and would have been automatically eliminated if they had remained there at the end of the game.
The win means Argentina finished in third place, and that books them a place along with Uruguay, Colombia and already-qualified Brazil.
Peru will play next month’s playoff at the expense of Chile, who were eliminated.
The United States of America also failed to qualify for the tournament for the first time since 1986.
The US team needed only a draw to qualify, but somehow lost to Trinidad & Tobago in their final qualifying game.
The European champions, Portugal, also qualified for next year’s World Cup with a convincing 2-0 win over Switzerland on Tuesday.
Elsewhere, Antoine Griezmann scored one and set up another as France booked their place at next year’s World Cup finals by beating Belarus 2-1 at the Stade de France in their final Group A qualifying game on Tuesday.
Holland’s expected exit was confirmed when they beat Sweden 2-0 at the Amsterdam Arena, falling short of the seven-goal margin required to replace their opponents in the play-offs.