Military prison
A military prison is a jail for the soldiers and sailors of a country's military who commit crimes. Alternatively, a military prison can hold prisoners of war. A brig is the detention facility aboard a naval vessel.