A court martial is a trial by military authorities. "Martial" is a word that is often used instead of military.
Martial law sometimes means, in time of emergency such as wartime, that civilians can be tried by court martial.