A qadi, also translated as qazi, kadi, kadhi, kazi, or gazi, is the magistrate or judge of a Sharia court. They focus on mediation, guardianship over orphans and minors, and supervision and audition of public works.