A court-martial is a military trial that is used to try service members for serious crimes, including offenses that are not recognized as crimes under civilian law.