A stockade is an enclosure of palisades and tall walls made of logs placed side by side vertically with the tops sharpened to provide security.
Builders could also place stones or thick mud layers at the foot of the stockade, improving the resistance of the wall. From that the defenders could, if they had the materials, raise a stone or brick wall inside the stockade, creating a more permanent defense while working protected.
The word stockade also refers to a jail in an army camp, and in some cases, even a crude prison camp or a slave camp. In these cases, the stockade keeps people inside, rather than out. Stockades can also be used to put insane people in.
Nowadays, stockade walls are often used as garden fencing, made of finished planks more useful for privacy and decoration than security.