The UAE has a federal court system. There are three main branches within the court structure: civil, criminal and Sharia law. The UAE's judicial system is derived from the civil law system and Sharia law. The court system consists of civil courts and Sharia courts. UAE's criminal and civil courts apply elements of Sharia law, codified into its criminal code and family law.