Did you mean brig?
brig
noun
°(nautical) A two-masted vessel, square-rigged on both foremast and mainmast.
°(US) A jail or guardhouse, especially in a military installation.