Lionel Messi faces a reunion with his former club Paris Saint-Germain after his Inter Miami side reached the last 16 of the Club World Cup with a 2-2 draw with Palmeiras.
The Brazilian side fought back from two goals down to draw at Hard Rock Stadium, a result which secured both teams a place in the knock-out stages.
Goals from Tadeo Allende and Luis Suarez had Miami on course for a second surprise victory in the tournament after their win over Porto.
But the Brazilian side struck twice in the last 10 minutes through Paulinho and Mauricio to make sure of their place in the next round.
Few expected Miami to make it out of the group but they now face the European champions while Palmeiras will have an all-Brazilian encounter with Botafogo.