Stockade
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.
As a security fence
Stockade fortifications were simple forms of defence of military camps or settlements, used since ancient Roman times and earlier. The troops or settlers would build a stockade by clearing a space of woodland and using the trees whole or chopped in half, with one end sharpened on each. They would dig a narrow trench around the area, and stand the sharpened logs side-by-side inside it, encircling the perimeter. Sometimes they would add additional defence by placing sharpened sticks in a shallow secondary trench outside the stockade. In colder climates sometimes the stockade received a coating of clay or mud that would make the crude wall wind-proof.
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 defence while working protected.
As a military prison
The word stockade also refers to a military prison 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.
As decoration
Nowadays, stockade walls are often used as garden fencing, made of finished planks more useful for privacy fencing and more decoration than security.