When Morocco's national football team stepped onto the pitch at the 2022 World Cup in Qatar, nobody expected them to go far. Most fans didn't. Most experts didn't. But the players knew something different was happening.

Before a single ball was kicked, manager Walid Regragui told his squad they weren't just showing up to play three group games. They were going to do something big. And they did — reaching the quarter-finals for the first time in Morocco's history, beating heavyweights like Spain and Portugal along the way.

So how did a nation that had only ever reached the World Cup knockout rounds once before (back in 1998) suddenly become a global force?

The answer, say football experts who worked inside the programme, is no accident.

"This is not an accident," said Simon Jennings, who oversaw youth development across Morocco between 2020 and 2024. "It's a result of clear national ambition."

That ambition came straight from the top. King Mohammed VI poured sustained investment into Moroccan football, building a world-class training facility, a national academy, regional training centres, stadium upgrades, and thousands of amateur pitches across the country. The message to top players, many of them used to elite European facilities, was clear: Morocco is serious.

"When you come in and see a training facility of this calibre, it shows you these people are serious and want to be successful," said Kevin Ward, who worked for the Royal Moroccan Football Federation (RMFF) from 2020 to 2024.

But Morocco didn't just invest at home. The federation sent full-time scouts to France, the Netherlands, Spain, Germany, Norway, Sweden, and Denmark — searching for talented players with Moroccan heritage who might never have considered playing for their parents' country.

Nineteen of Morocco's 26-player World Cup squad were born outside the country. They were embraced, said Jennings, as true Moroccans. "They have got such an affinity with their own culture and nationality. You don't get a feeling that it's a second nation. They are totally into being Moroccan."

One striking example: Spain's teenage star Lamine Yamal has a Moroccan father. The federation met with him and his family when he was just 12 or 13 years old, said Ward, though Yamal ultimately chose to play for Spain.

Some young Moroccans did choose differently. Ayyoub Bouaddi, a highly rated 18-year-old midfielder from Lille, had represented France at every youth level but chose Morocco. He was also eligible to play for quarter-final opponents France.

The results speak for themselves. Under coach Mohamed Ouahbi — who took over the under-20 side after they failed to qualify for the African Nations Cup in 2023 — Morocco went on to win the Under-20 World Cup in 2025. Ouahbi was promoted to senior manager just months later.

The royal palace has also pledged £11.2 billion in the 2026 budget for health and education, a 16% increase from the previous year — responding to calls from youth groups while continuing football's rise.

Chris van Puyvelde, who served as technical director at the RMFF from 2022 to 2025, said the next goal is more balance: by the next World Cup, Morocco wants an equal split between players born in Morocco and those raised abroad. But he warned the federation can't lose sight of building stronger clubs and academies at home.

"The total organisation inside the country needs to be better," he said.

For Morocco, the quarter-final run was just the beginning.