A court martial is a military court convened to try a member of the military for violating the Code of military Justice (military law).