Spain is divided into 17 autonomous communities and two autonomous cities (Ceuta and Melilla).