Castile is a region and former kingdom near central Spain that is traditionally divided into Old Castile and New Castile that is now divided between the autonomous regions of Castile and Leon and Castile-La Mancha. In 1469, the marriage of Ferdinand II of Aragon and Isabella I of Castile laid the basis for the union of the two kingdoms and, eventually, of all Spain. At its height during the late Middle Ages it extended from the Bay of Biscay on the north to Andalucia on the south and included most of the central Iberian Peninsula. During this time, Castilian kings were prominent in the fight against the Moors, from whom they wrested New Castile. Castile was the core of the Spanish monarchy, centralized in Madrid, which was the capital after 1561.