Spain
The Kingdom of León, the most important in the early Spanish Middle Ages, was started in 910. This Kingdom developed the first democratic parliament (Cortes de Llión) in Europe in 1188. After 1301, León had the same King as the Kingdom of Castile in personal union.  The various kingdoms remained independent territories until 1833, when Spain was divided into regions and provinces.