Fearing invasion, the Edinburgh town council built a protective wall (the  Flodden Wall ) around the city boundaries.
The Flodden Wall was built around Edinburgh to protect it from invasion.
The Edinburgh town council built a protective moat named the Flodden Canal.