What does it mean to go to court martial?

Going to a military court refers to a person who has the status of an active serviceman, an employee in the army, and is suspected of a criminal offence or criminal case.

Military courts are the judicial organs of the state in the army and are synonymous with "military courts". China's law calls it a "military court". As a special people's court, military courts determine their jurisdiction according to the principle of unified exercise of state judicial power, and perform their judicial duties under the supervision and guidance of the Supreme People's Court.