Lionel Messi scored his 50th goal for Inter Miami as they came from behind to beat Porto for their first win at the Fifa Club World Cup.
Porto took the lead after just eight minutes when Samu Aghehowa squeezed a penalty under the arm of goalkeeper Oscar Ustari.
Martin Anselmi's side could have been further clear by half-time but Francesco Moura saw a shot cleared off the line and Alan Varela struck the post.
Telasco Segovia sparked the Inter Miami comeback when powering Marcelo Weigandt's cut-back into the top corner.
Messi then sealed the MLS franchise's maiden victory in the competition with a trademark free-kick over the wall and out of reach for a sprawling Claudio Ramos.
The 37-year-old fired wide from a set-piece further out just a few moments prior but, when presented with another opportunity centrally and from the edge of the D, he executed perfectly to score his 68th goal from a direct free-kick.