During the Muslim period, the primary courts at the capital included:
Darbar/Diwan: Royal court for state affairs.
Diwan-i-Am: Hall of Public Audience.
Diwan-i-Khas: Hall of Private Audience.
Shari'a Court: Court for Islamic law.
Diwan-i-Wazarat: Finance department.
Diwan-i-Insha: Department of correspondences.