Walls: A History of Civilization in Blood and Brick David Frye

Deep but highly-readable explanation of how and why civilizations built walls.