Totally beginner question, especially since I've been playing for so long.
But what do walls do? They prevent monsters from destroying improvements without entering the city, but that is about everything that I can see.
Do they have any other effect?
Why upgrade? What do the castle walls do compared to the hedge?