If you build strong defensive structures, you want them to work on your behalf as long as possible when someone raids your settlement. Place them near the center of your empire, and build walls outward from there, surrounding each new structures so that your kingdom looks almost like a giant honeycomb or checker board. Each wall that an enemy has to dismantle on the way to your big guns can give you more time to prevent the raid from being a success.