- "And Luke? You are the worst soldier I have ever met. Hero of Yavin or not, you will obey orders or I will court-martial you back to moisture farming."
- ―Leia Organa, to Luke Skywalker
A court-martial was a military court consisting of high-ranking officers appointed to try personnel charged with infractions of military law. When they disobeyed the orders of Jedi General Pong Krell during the Battle of Umbara, the clone troopers Fives and Jesse nearly faced a court-martial. During the mission to Ktath'atn, rebel Princess Leia Organa threatened to court-martial fellow rebel Luke Skywalker back to moisture farming if he did not obey her orders. After Dec Hansen and Mattis Banz broke into General Leia Organa's quarters at the Resistance base on D'Qar, Banz wondered why Admiral Gial Ackbar had not court-martialled them, leading him to believe that procedure was not practiced by the Resistance. It was known among Imperial officers that Darth Vader often simply did not bother with a court-martial when it came to discipline.