Capua was originally a gastaldate within the Principality of Benevento, and then a county within the Principality of Salerno. The rulers of Capua were Lombards until 1058, when it was conquered by Normans.