At the FIFA Congress in Moscow on Wednesday, North America's bid tallied 134 votes, while Morocco got 65.
Thus, 32 years after setting World Cup attendance records in hosting the 1994 competition, the United States will join forces with its neighbours to organise a championship that, in 2026, will expand to 48 teams from 32.
The World Cup is returning to North American soil.
As a player nothing could possibly beat playing in front of your own fans in your own country at the World Cup and I hope our players of the future will be fortunate enough to experience this.
Al Jazeera's Gabriel Elizondo, reporting from NY, said: "While the official name of the bid is United 2026, the three potential host nations are right now anything but united".
Large votes are often swayed by small concessions promised to the right number of smaller nations or by regional biases.
AP Analysis: Kim Jong Un flies home with lots to brag about
The announcement caught not only allies Japan and South Korea off guard, it also took the U.S. military command in the South, U.S. Trump has said he'll know within minutes whether a deal can be made to settle a standoff over Pyongyang's nuclear program.
The United States, Mexico and Canada will host soccer's biggest event in 2026.
The congress was presided over by Fifa's head Gianni Infantino while it was opened by Russian president Vladimir Putin, who received a standing ovation from attendees at Moscow's Expocentre. Mexico has played in every World Cup since 1990.
United Bid chairman Carlos Cordeiro says the 2026 World Cup would hand Federation Internationale de Football Association a record $11 billion profit from total revenues of $14 billion.
The successful bid also comes as President Donald Trump is engaged in public feuds with the leaders of both those countries. Before the vote, some had suggested that a "Trump effect" was harming the United States' chances, saying the president's quarrels internationally were putting off some countries.
They are the most compelling reasons why we would be the best hosts.
Morocco was counting on the strong support of African countries but it seems the ten nations defied the continental solidarity and voted otherwise. Canada has never hosted a men's World Cup, though it was the site of the 2015 Women's World Cup.
Organizers had also anxious that the Trump administration's controversial travel ban targeting some Muslim nations could prevent some teams and fans from visiting during the tournament. Trudeau responded by saying that Canadians would "not be pushed around". Canada, Mexico and the USA are home to a combined 491 million people and two of the world's biggest media markets. Thus far, cities in contention to host are New York/New Jersey, Seattle, Boston, Philadelphia, Atlanta, Denver, Miami, Houston, Dallas, Los Angeles, Washington D.C., Baltimore, Nashville, Orlando, San Francisco/San Jose, and Cincinnati.