The founder of the house was Abd-ul-Qasim Mahommed, the cadi of Seville in 1023.
According to Shafi`ite law, such a cadi must be a male, free, adult Moslem, intelligent, of unassailed character, able to see, hear and write, learned in the Koran, the traditions, the Agreement, the differences of the legal schools, acquainted with Arabic grammar and the exegesis of the Koran.
Having received permission to make the pilgrimage to Mecca, he reached Cairo, where he was presented to the sultan, al-Malik udh-Dhahir Barkuk, who insisted on his remaining there, and in the year 1384 made him grand cadi of the Malikite rite for Cairo.
The history, Tarikh Bulgar, said to have been written in the 12th century by an Arabian cadi of the city Bolgari, has not yet been discovered; but the Arabian historians, Ibn Foslan, Ibn Haukal, Abul Hamid Andalusi, Abu Abdallah Harnati, and several others, who had visited the kingdom, beginning with the 10th century, have left descriptions of it.
The grand cadi, who must belong to the sect of the Hanifis, sits at Cairo, and is aided by a council of Ulema or learned men.