Encyclopaedia of Islam
According to the Encyclopaedia of Islam, the Kaftan was introduced into the Barbary States by the Ottomans and spread by fashion as far as Morocco.