Military justice
Military justice (also military law) is the legal system that governs the armed forces of a country. In some counties civil law and military law are different and they have different courts to enforce the law.
Military justice is not the same as martial law, which is the imposition of direct military authority upon a civilian population.