The U.S. military is conducting war simulations near the contested western Saharan area in jointly organized exercises with Morocco.
More than 7,000 personnel from nine countries and NATO are taking part in the exercises codenamed "African Lion", which kicked off on June 8, according to US Africa Command (Africom).
The manoeuvres, due to conclude on Friday, have seen rockets fired near Western Sahara, navy boats patrol off the coast of Spain's Canary Islands and air forces conduct training exercises.
"African Lion is US Africa Command's largest exercise," Africom said on its website, adding "the training is focused on enhancing readiness for US and partner nation forces."
Moroccan Prime Minister Saad-Eddine El Othmani said in a tweet ahead of the exercises that the event "marks the consecration of American recognition of the Moroccan Sahara".
But the US take on the exercises differed.
"Exercise locations are spread mainly across Morocco, from Kenitra Air Base in the north to Tan Tan and Guerir Labouhi training complex in the south," Africom said in a statement.
The manoeuvres were staged some 50 kilometres (30 miles) from the Algerian desert town of Tindouf, where the separatist Polisario Front has a base.
Morocco laid claim to Western Sahara, a former Spanish colony with rich phosphate resources and offshore fisheries, after Spain withdrew in 1975.
The Polisario Front took up arms to demand independence, proclaiming the Sahrawi Arab Democratic Republic (SADR) in 1976 and fighting a 16-year war with Morocco.
Morocco now controls 80 percent of the territory, while the rest is held by the Polisario Front.
Rabat has offered Western Sahara autonomy, but maintains that the territory is a sovereign part of the kingdom.
Former US president Donald Trump recognised Morocco's sovereignty over Western Sahara last year after Rabat normalised ties with Israel, sparking an angry response from the Polisario.
Morocco's armed forces, which usually keep a low profile, have praised the "perfect conditions" under which the joint exercises are taking place.
And in recent days pictures, videos and statements have been posted on the unofficial Facebook page of the Far-Maroc (armed forces) of the military games.
In one video, US Major General Michael J. Turley is heard saying that Morocco has "one of the most modern armies and air forces and navies within the world."
Countries taking part in the exercises include Tunisia and Senegal, as well as Britain and Italy.