Castles

From Caernarfon to Cardiff, Wales is filled with castles. But why?
No-one knows the full number that have been constructed over the centuries.