Courts are divided into three categories: civil, religious, and special. The civil courts deal with civil and criminal matters, including cases brought against the government. The civil courts include Magistrate Courts, Courts of First Instance, Courts of Appeal, High Administrative Courts which hear cases relating to administrative matters, and the Constitutional Court which was set up in 2012 in order to hear cases regarding the constitutionality of laws. Although Islam is the state religion, the constitution preserves religious and personal freedoms. Religious law only extends to matters of personal status such as divorce and inheritance in religious courts, and is partially based on Islamic Sharia law. The special court deals with cases forwarded by the civil one.