Naples became independent later and but was combined with the Kingdom of Sicily during the Middle Ages. By 1500 it was ruled by Aragón, which was a kingdom in eastern Spain. Later Naples became part of Spain when Aragon and the other kingdom in Spain called Castile became one country. Naples was part of this Kingdom of Spain until the Austrian Empire got it in the War of the Spanish Succession in 1714.