Morocco–Qatar relations humanitarian aid to Qatar, which had been banned from using the land, air and sea routes belonging to several of its neighboring countries. Qatar maintains an embassy in Morocco's capital city Rabat. Morocco has an embassy in Doha, Qatar. King Mohammed VI of Morocco, who assumed power in 1999, made his first official visit to Qatar in June 2002. Emir Hamad bin Khalifa Al-Thani made his first visit to Morocco in October 2002. In July 2005, he traveled to Morocco for an official two-day visit. After Hamad bin Khalifa Al-Thani successfully deposed his father Khalifa bin Hamad Al Thani in
Morocco to Morocco after the Abbasids' massacre of his tribe in Iraq. He convinced the Awraba Berber tribes to break their allegiance to the distant Abbasid caliphs in Baghdad and he founded the Idrisid dynasty in 788. The Idrisids established Fes as their capital and Morocco became a centre of Muslim learning and a major regional power. The Idrissids were ousted in 927 by the Fatimid Caliphate and their Miknasa allies. After Miknasa broke off relations with the Fatimids in 932, they were removed from power by the Maghrawa of Sijilmasa in 980. From the 11th century onwards, a series of