The Maliki school (; ) is one of the four major schools of Islamic jurisprudence within Sunni Islam. It was founded by Malik ibn Anas in the 8th century. The Maliki school of jurisprudence relies on the Quran and hadiths as primary sources. Unlike other Islamic fiqhs, Maliki fiqh also considers the consensus of the people of Medina to be a valid source of Islamic law. The Maliki school is one of the largest groups of Sunni Muslims, comparable to the Shafi`i madhhab in adherents, but smaller than the Hanafi madhhab. Sharia based on Maliki doctrine is predominantly found in North Africa (excluding northern and eastern Egypt), West Africa, Chad, Sudan, Kuwait, Bahrain, Qatar, the Emirate of Dubai (UAE), and in northeastern parts of Saudi Arabia. In the medieval era, the Maliki school was also found in parts of Europe under Islamic rule, particularly Islamic Spain and the Emirate of Sicily. A major historical center of Maliki teaching, from the 9th to 11th centuries, was in the Mosque of Uqba of Tunisia. History Although Malik ibn Anas was himself a native of Medina, his school faced fierce competition for followers in the Muslim east, with the Shafi'i, Hanbali, and Zahiri schools all enjoying more success than Malik's school. It was eventually the Hanafi school, however, that earned official government favor from the Abbasids. Imam Malik (who was a teacher of Imam Ash-Shafi‘i, who in turn was a teacher of Imam Ahmad ibn Hanbal) was a student of Imam Ja'far al-Sadiq (a descendant of the Islamic prophet Muhammad and 6th Shi'ite Imam), as with Imam Abu Hanifah. Thus all of the four great Imams of Sunni Fiqh are connected to Ja'far, whether directly or indirectly. The Malikis enjoyed considerably more success in Africa, and for a while in Spain and Sicily. Under the Umayyads and their remnants, the Maliki school was promoted as the official state code of law, and Maliki judges had free rein over religious practices; in return, the Malikis were expected to support and legitimize the government's right to power. This dominance in Spanish Andalus from the Umayyads up to the Almoravids continued, with Islamic law in the region dominated by the opinions of Malik and his students. The Sunnah and Hadith, or prophetic tradition in Islam, played lesser roles as Maliki jurists viewed both with suspicion, and few were well versed in either. The Almoravids eventually gave