MIAMI >> Lionel Messi has pulled off his latest stunning feat: He is headed to Major League Soccer, and joining Inter Miami.

After months — years, even — of speculation, Messi finally revealed his decision to join a Miami franchise that has been led by another global soccer icon, David Beckham, since its inception but has yet to make any real splashes on the field.

That likely will soon change. One of Inter Miami’s owners, Jorge Mas, tweeted out a photo of a darkly silhouetted Messi jersey shortly before the Argentinian great revealed his decision in interviews with Spanish news outlets Mundo Deportivo and Sport.

It was widely believed that Messi eventually would choose to play for Al-Hilal in Saudi Arabia, following longtime rival Cristiano Ronaldo to a nation where some clubs now are funded by the state’s sovereign wealth fund. Going back to Barcelona, a storied franchise where he spent most of his career, was another possibility.

But in the end, he made the call that surprised many. Messi is joining MLS. He said in the interviews Wednesday that some final details still need to be worked out, but that he has made the call to “continue my path” in Miami.

“After winning the World Cup and not being able to return to Barcelona, it was my turn to go to the league of the United States to live football in another way,” Messi said.