It turns out the stockade was built by Captain Flint at the time of burying the treasure hoard. The Squire and the others have been able to make use of the guns stored there and the initial pirate ...