 The Basque territories were for a time united within the Kingdom of Pamplona.The three present Spanish Basque provinces were incorporated into the Kingdom of Castile at the end of the 12th century, yet retained substantial local rights and privileges ("fueros").The Basque Country was one of the main centres of 19th-century Carlism, which opposed the reigning monarchy and was defeated in a series of wars.