Qazi

Qadi (also known as Qazi or Kazi or Kadi) (Arabic: قاضي‎) is a judge or religious adjudicator who preaches and decides on Islamic religious matters. The judgment of a kazi must be based on ijma, the prevailing consensus of the ulema, Islamic scholars. The term qadi was in use right from the time of the Prophet Muhammad, and remained the term used for judges throughout Islamic history and the period of the caliphates. 
The office of the qadi continued to be a very important one in every principality of the caliphates and sultanates of the Muslim empires over the centuries. The rulers appointed qadis in every region, town and village for judicial and administrative control and to establish peace and justice over the dominions they controlled.
The rulers of Muslim India also used the same institution of the qadi (or Kazi). The qadi (kazi) was given the responsibility for total administrative, judicial and fiscal control over a territory or a town. He would maintain all the civil records as well. He would also retain a small army or force to ensure that his rulings are enforced.
In most cases, the kazi (qadi) would pass on the title and position to his son, descendent or a very close relative. Over the centuries, this profession became a title within the families, and the power remained within one family in a region. Throughout India and Pakistan, we now find various Kazi families who descended through their famous Kazi (qadi) ancestors and retained the lands and position. Each family is known by the town or city that their ancestors controlled
==Gurbani Quote==
*1. 
*2. 
*3. 
*4.