The Uniform Code of Military Justice is the foundation of the system of military justice of the armed forces of the United States.