City walls increase the defensive strength of any military units within the city by 3. They also defend against slavers (100% effective), and help prevent religious conversions ( 50% effective).