A brig is a United States military prison aboard a United States Navy or Coast Guard vessel, or at an American naval or Marine Corps base. The term derives from the Navy's historical use of twin-mast sailing ships—or brigs—as prison ships.