 Later the Roman gateways were rebuilt as well.The circuit walls of the fort became the outer bailey wall of a Norman castle and later medieval palace.It was used as a gaol during the Napoleonic Wars.