Morocco’s soccer federation has lost its case against FIFA to recruit Spain forward Munir El Haddadi before the World Cup.
The Court of Arbitration for Sport says it dismissed Morocco’s appeal against a FIFA ruling that blocked the Barcelona player from transferring allegiance.
The verdict was given after a hearing on Monday.
FIFA rules prohibit switching nationality after playing in a competitive match.
El Haddadi, who has family ties to Morocco, played for Spain in a 2016 European Championship qualifying game, as a 77th-minute substitute in a 5-1 win over Macedonia.
The 22-year-old El Haddadi is out of favor with Spain and played this season on loan at Alaves.
Morocco and Spain will face each other on June 25 in Kaliningrad. Portugal and Iran are also in Group B.