Stockades increase the defensive strength of any military units within the city by 1. They also defend against slavers (100% effective).