The cadi was a trained lawyer whose duty was to intrepret and apply Sharia law. He was assisted by the mufti and his legal interpretation (fatwa). The cadi also served as a mediator and arbitrator.
Before the cadi, book painting, ca. 1334, unknown artist; image source: © Austrian National Library, Cod. A.F. fol. 30v.