Spain is a constitutional monarchy with a parliamentary government system established in 1978. Power is divided among the executive, legislative, and judicial branches. Spain is divided into 17 autonomous communities and 2 autonomous cities, which are further divided into 50 provinces. The capital and largest city is Madrid. Immigration to Spain has increased in recent decades.