The Fence counts as a building.
upgrade => Ramparts
This building requires ? man-days
The construction of the building requires 800 gold and 70 wood.
With the Fence present, the attackers must have more regiments to conquer a city: 150 attackers for cities with fences, compared to 100 attackers for cities without.