The caliphate of Hammudids was founded by Ali b. Hammud in a part of Andalusia in 407 A.H. Ali whose ancestors were Morocco Idrisids, enjoyed the use of disturbed situation of Umayyad caliphate system due to its corrupted officials and political disorders and arrested SOlayman b. Hakam and after a time,he murdered Solayman and announced himself as the caliph .Since this time, in ups and downs he and some of his brothers and sons and nephews ruled over parts of Andalusia by 449 A.H.
Hammudids believed in Shi'ism, however they did not possess collective theological thoughts ,systematic philosophy or sustainable jurisprudence principles, but they collapsed religious structure of Andalusia in that time which was on the base of irrational support from Maliki sec . They gave an opportunity to other sects, specially to the Shi'ite and prepared the least necessary foundation and ground for Shia activity in that land