After establishing the emirate and its administrative divisions, the emir appointed to each region a qadi to rule in accordance with the Maliki school of fiqh. Justice is the basis of governance, so he set requirements for judges: to be honest, just, chaste and practise Islam.