There are seventeen autonomous regions in Spain plus two autonomous cities. These are the official flags associated with those regions and cities.
Andalucia

Andalucia

Aragon

Aragon

Asturias

Asturias

Balearics

Balearics

Basque Country

Basque Country

Canary Islands

Canary Islands

Cantabria

Cantabria

Castille and La Mancha

Castille La Mancha

Cataluna

Cataluña

Extremadura

Extremadura

Galicia

Galicia

La Rioja

La Rioja

Madrid

Madrid

Murcia

Murcia

Navarra

Navarra

Valencia

Valencia

Cataluna

Castilla y León

Ceuta

Ceuta

Melilla

Melilla