Military law is a specialized branch of law that applies to military service members. It's controlled by the Uniform Code of Military Justice (UCMJ), which lays out the rights, privileges, duties, and obligations of military personnel; establishes procedures for military discipline; and defines crimes and punishments according to the military law justice system.