Spain is organized into 17 autonomous communities and 2 autonomous cities. It is also divided into 50 provinces which are made up of municipalities. The Spanish state is organized this way according to the 1978 Spanish Constitution, which established a democratic and social state with separation of powers and sovereignty residing in the people. The constitution was approved in 1978 and establishes Spain's political and territorial organization.