What is the meaning of Stockade?

An enclosure protected by a wall of wooden posts.

A military prison.

To enclose in a stockade.

past indicative of stocka

Source: wiktionary.org