Country of birth (big groups);Sex;Nationality (big groups);Total TOTAL;Both sexes;Total;46,815,916 TOTAL;Both sexes;Spanish;41,563,443 TOTAL;Both sexes;Foreign;5,252,473 TOTAL;Both sexes;Foreign, from a member country of the EU;2,084,916 TOTAL;Both sexes;Foreign, from an European country non-UE member;220,904 TOTAL;Both sexes;Foreign, from an African country;1,063,194 TOTAL;Both sexes;Foreign, from a North American country;52,377 TOTAL;Both sexes;Foreign, from a Caribbean, South or Central American country;1,479,852 TOTAL;Both sexes;Foreign, from an Asian countryde un país de Asia;348,284 TOTAL;Both sexes;Foreign, from an Oceania country or stateless;2,946 TOTAL;Men;Total;23,104,303 TOTAL;Men;Spanish;20,372,386 TOTAL;Men;Foreign;2,731,917 TOTAL;Men;Foreign, from a member country of the EU;1,092,569 TOTAL;Men;Foreign, from an European country non-UE member;95,944 TOTAL;Men;Foreign, from an African country;660,910 TOTAL;Men;Foreign, from a North American country;23,668 TOTAL;Men;Foreign, from a Caribbean, South or Central American country;653,549 TOTAL;Men;Foreign, from an Asian countryde un país de Asia;203,603 TOTAL;Men;Foreign, from an Oceania country or stateless;1,674 TOTAL;Women;Total;23,711,613 TOTAL;Women;Spanish;21,191,057 TOTAL;Women;Foreign;2,520,556 TOTAL;Women;Foreign, from a member country of the EU;992,346 TOTAL;Women;Foreign, from an European country non-UE member;124,959 TOTAL;Women;Foreign, from an African country;402,285 TOTAL;Women;Foreign, from a North American country;28,709 TOTAL;Women;Foreign, from a Caribbean, South or Central American country;826,303 TOTAL;Women;Foreign, from an Asian countryde un país de Asia;144,680 TOTAL;Women;Foreign, from an Oceania country or stateless;1,273 Born in Spain;Both sexes;Total;40,508,639 Born in Spain;Both sexes;Spanish;40,123,786 Born in Spain;Both sexes;Foreign;384,853 Born in Spain;Both sexes;Foreign, from a member country of the EU;110,312 Born in Spain;Both sexes;Foreign, from an European country non-UE member;13,381 Born in Spain;Both sexes;Foreign, from an African country;175,946 Born in Spain;Both sexes;Foreign, from a North American country;1,818 Born in Spain;Both sexes;Foreign, from a Caribbean, South or Central American country;44,123 Born in Spain;Both sexes;Foreign, from an Asian countryde un país de Asia;39,001 Born in Spain;Both sexes;Foreign, from an Oceania country or stateless;272 Born in Spain;Men;Total;19,909,588 Born in Spain;Men;Spanish;19,709,735 Born in Spain;Men;Foreign;199,853 Born in Spain;Men;Foreign, from a member country of the EU;56,833 Born in Spain;Men;Foreign, from an European country non-UE member;6,886 Born in Spain;Men;Foreign, from an African country;91,758 Born in Spain;Men;Foreign, from a North American country;907 Born in Spain;Men;Foreign, from a Caribbean, South or Central American country;22,648 Born in Spain;Men;Foreign, from an Asian countryde un país de Asia;20,659 Born in Spain;Men;Foreign, from an Oceania country or stateless;162 Born in Spain;Women;Total;20,599,051 Born in Spain;Women;Spanish;20,414,051 Born in Spain;Women;Foreign;185,000 Born in Spain;Women;Foreign, from a member country of the EU;53,478 Born in Spain;Women;Foreign, from an European country non-UE member;6,495 Born in Spain;Women;Foreign, from an African country;84,188 Born in Spain;Women;Foreign, from a North American country;911 Born in Spain;Women;Foreign, from a Caribbean, South or Central American country;21,476 Born in Spain;Women;Foreign, from an Asian countryde un país de Asia;18,342 Born in Spain;Women;Foreign, from an Oceania country or stateless;110 Born abroad;Both sexes;Total;6,307,277 Born abroad;Both sexes;Spanish;1,439,657 Born abroad;Both sexes;Foreign;4,867,620 Born abroad;Both sexes;Foreign, from a member country of the EU;1,974,604 Born abroad;Both sexes;Foreign, from an European country non-UE member;207,522 Born abroad;Both sexes;Foreign, from an African country;887,249 Born abroad;Both sexes;Foreign, from a North American country;50,559 Born abroad;Both sexes;Foreign, from a Caribbean, South or Central American country;1,435,728 Born abroad;Both sexes;Foreign, from an Asian countryde un país de Asia;309,283 Born abroad;Both sexes;Foreign, from an Oceania country or stateless;2,675 Born abroad;Men;Total;3,194,715 Born abroad;Men;Spanish;662,651 Born abroad;Men;Foreign;2,532,064 Born abroad;Men;Foreign, from a member country of the EU;1,035,736 Born abroad;Men;Foreign, from an European country non-UE member;89,058 Born abroad;Men;Foreign, from an African country;569,152 Born abroad;Men;Foreign, from a North American country;22,761 Born abroad;Men;Foreign, from a Caribbean, South or Central American country;630,901 Born abroad;Men;Foreign, from an Asian countryde un país de Asia;182,944 Born abroad;Men;Foreign, from an Oceania country or stateless;1,512 Born abroad;Women;Total;3,112,562 Born abroad;Women;Spanish;777,006 Born abroad;Women;Foreign;2,335,556 Born abroad;Women;Foreign, from a member country of the EU;938,868 Born abroad;Women;Foreign, from an European country non-UE member;118,464 Born abroad;Women;Foreign, from an African country;318,097 Born abroad;Women;Foreign, from a North American country;27,798 Born abroad;Women;Foreign, from a Caribbean, South or Central American country;804,827 Born abroad;Women;Foreign, from an Asian countryde un país de Asia;126,338 Born abroad;Women;Foreign, from an Oceania country or stateless;1,163 Abroad and in an UE member state;Both sexes;Total;2,134,285 Abroad and in an UE member state;Both sexes;Spanish;285,964 Abroad and in an UE member state;Both sexes;Foreign;1,848,321 Abroad and in an UE member state;Both sexes;Foreign, from a member country of the EU;1,843,151 Abroad and in an UE member state;Both sexes;Foreign, from an European country non-UE member;1,397 Abroad and in an UE member state;Both sexes;Foreign, from an African country;1,335 Abroad and in an UE member state;Both sexes;Foreign, from a North American country;578 Abroad and in an UE member state;Both sexes;Foreign, from a Caribbean, South or Central American country;1,010 Abroad and in an UE member state;Both sexes;Foreign, from an Asian countryde un país de Asia;780 Abroad and in an UE member state;Both sexes;Foreign, from an Oceania country or stateless;70 Abroad and in an UE member state;Men;Total;1,101,348 Abroad and in an UE member state;Men;Spanish;133,788 Abroad and in an UE member state;Men;Foreign;967,559 Abroad and in an UE member state;Men;Foreign, from a member country of the EU;964,953 Abroad and in an UE member state;Men;Foreign, from an European country non-UE member;628 Abroad and in an UE member state;Men;Foreign, from an African country;722 Abroad and in an UE member state;Men;Foreign, from a North American country;275 Abroad and in an UE member state;Men;Foreign, from a Caribbean, South or Central American country;528 Abroad and in an UE member state;Men;Foreign, from an Asian countryde un país de Asia;416 Abroad and in an UE member state;Men;Foreign, from an Oceania country or stateless;37 Abroad and in an UE member state;Women;Total;1,032,938 Abroad and in an UE member state;Women;Spanish;152,176 Abroad and in an UE member state;Women;Foreign;880,762 Abroad and in an UE member state;Women;Foreign, from a member country of the EU;878,198 Abroad and in an UE member state;Women;Foreign, from an European country non-UE member;768 Abroad and in an UE member state;Women;Foreign, from an African country;613 Abroad and in an UE member state;Women;Foreign, from a North American country;303 Abroad and in an UE member state;Women;Foreign, from a Caribbean, South or Central American country;483 Abroad and in an UE member state;Women;Foreign, from an Asian countryde un país de Asia;364 Abroad and in an UE member state;Women;Foreign, from an Oceania country or stateless;32 Abroad, in Europe and in a non-UE member state;Both sexes;Total;283,946 Abroad, in Europe and in a non-UE member state;Both sexes;Spanish;72,893 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign;211,053 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from a member country of the EU;5,580 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from an European country non-UE member;204,177 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from an African country;122 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from a North American country;220 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from a Caribbean, South or Central American country;625 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from an Asian countryde un país de Asia;287 Abroad, in Europe and in a non-UE member state;Both sexes;Foreign, from an Oceania country or stateless;41 Abroad, in Europe and in a non-UE member state;Men;Total;127,037 Abroad, in Europe and in a non-UE member state;Men;Spanish;36,173 Abroad, in Europe and in a non-UE member state;Men;Foreign;90,863 Abroad, in Europe and in a non-UE member state;Men;Foreign, from a member country of the EU;2,714 Abroad, in Europe and in a non-UE member state;Men;Foreign, from an European country non-UE member;87,513 Abroad, in Europe and in a non-UE member state;Men;Foreign, from an African country;69 Abroad, in Europe and in a non-UE member state;Men;Foreign, from a North American country;95 Abroad, in Europe and in a non-UE member state;Men;Foreign, from a Caribbean, South or Central American country;319 Abroad, in Europe and in a non-UE member state;Men;Foreign, from an Asian countryde un país de Asia;127 Abroad, in Europe and in a non-UE member state;Men;Foreign, from an Oceania country or stateless;26 Abroad, in Europe and in a non-UE member state;Women;Total;156,909 Abroad, in Europe and in a non-UE member state;Women;Spanish;36,720 Abroad, in Europe and in a non-UE member state;Women;Foreign;120,189 Abroad, in Europe and in a non-UE member state;Women;Foreign, from a member country of the EU;2,866 Abroad, in Europe and in a non-UE member state;Women;Foreign, from an European country non-UE member;116,664 Abroad, in Europe and in a non-UE member state;Women;Foreign, from an African country;54 Abroad, in Europe and in a non-UE member state;Women;Foreign, from a North American country;125 Abroad, in Europe and in a non-UE member state;Women;Foreign, from a Caribbean, South or Central American country;305 Abroad, in Europe and in a non-UE member state;Women;Foreign, from an Asian countryde un país de Asia;160 Abroad, in Europe and in a non-UE member state;Women;Foreign, from an Oceania country or stateless;15 Abroad and in Africa;Both sexes;Total;1,070,482 Abroad and in Africa;Both sexes;Spanish;168,907 Abroad and in Africa;Both sexes;Foreign;901,576 Abroad and in Africa;Both sexes;Foreign, from a member country of the EU;14,942 Abroad and in Africa;Both sexes;Foreign, from an European country non-UE member;344 Abroad and in Africa;Both sexes;Foreign, from an African country;885,565 Abroad and in Africa;Both sexes;Foreign, from a North American country;206 Abroad and in Africa;Both sexes;Foreign, from a Caribbean, South or Central American country;138 Abroad and in Africa;Both sexes;Foreign, from an Asian countryde un país de Asia;208 Abroad and in Africa;Both sexes;Foreign, from an Oceania country or stateless;173 Abroad and in Africa;Men;Total;668,517 Abroad and in Africa;Men;Spanish;90,743 Abroad and in Africa;Men;Foreign;577,774 Abroad and in Africa;Men;Foreign, from a member country of the EU;8,862 Abroad and in Africa;Men;Foreign, from an European country non-UE member;212 Abroad and in Africa;Men;Foreign, from an African country;568,240 Abroad and in Africa;Men;Foreign, from a North American country;126 Abroad and in Africa;Men;Foreign, from a Caribbean, South or Central American country;79 Abroad and in Africa;Men;Foreign, from an Asian countryde un país de Asia;132 Abroad and in Africa;Men;Foreign, from an Oceania country or stateless;122 Abroad and in Africa;Women;Total;401,965 Abroad and in Africa;Women;Spanish;78,163 Abroad and in Africa;Women;Foreign;323,802 Abroad and in Africa;Women;Foreign, from a member country of the EU;6,080 Abroad and in Africa;Women;Foreign, from an European country non-UE member;132 Abroad and in Africa;Women;Foreign, from an African country;317,325 Abroad and in Africa;Women;Foreign, from a North American country;80 Abroad and in Africa;Women;Foreign, from a Caribbean, South or Central American country;59 Abroad and in Africa;Women;Foreign, from an Asian countryde un país de Asia;76 Abroad and in Africa;Women;Foreign, from an Oceania country or stateless;51 Abroad and in North America;Both sexes;Total;91,016 Abroad and in North America;Both sexes;Spanish;40,334 Abroad and in North America;Both sexes;Foreign;50,682 Abroad and in North America;Both sexes;Foreign, from a member country of the EU;3,874 Abroad and in North America;Both sexes;Foreign, from an European country non-UE member;139 Abroad and in North America;Both sexes;Foreign, from an African country;18 Abroad and in North America;Both sexes;Foreign, from a North American country;46,226 Abroad and in North America;Both sexes;Foreign, from a Caribbean, South or Central American country;364 Abroad and in North America;Both sexes;Foreign, from an Asian countryde un país de Asia;41 Abroad and in North America;Both sexes;Foreign, from an Oceania country or stateless;21 Abroad and in North America;Men;Total;41,047 Abroad and in North America;Men;Spanish;18,289 Abroad and in North America;Men;Foreign;22,758 Abroad and in North America;Men;Foreign, from a member country of the EU;1,825 Abroad and in North America;Men;Foreign, from an European country non-UE member;52 Abroad and in North America;Men;Foreign, from an African country;11 Abroad and in North America;Men;Foreign, from a North American country;20,681 Abroad and in North America;Men;Foreign, from a Caribbean, South or Central American country;165 Abroad and in North America;Men;Foreign, from an Asian countryde un país de Asia;16 Abroad and in North America;Men;Foreign, from an Oceania country or stateless;8 Abroad and in North America;Women;Total;49,969 Abroad and in North America;Women;Spanish;22,045 Abroad and in North America;Women;Foreign;27,924 Abroad and in North America;Women;Foreign, from a member country of the EU;2,049 Abroad and in North America;Women;Foreign, from an European country non-UE member;87 Abroad and in North America;Women;Foreign, from an African country;7 Abroad and in North America;Women;Foreign, from a North American country;25,545 Abroad and in North America;Women;Foreign, from a Caribbean, South or Central American country;199 Abroad and in North America;Women;Foreign, from an Asian countryde un país de Asia;25 Abroad and in North America;Women;Foreign, from an Oceania country or stateless;12 Abroad and in South or Central America or in the Caribbean;Both sexes;Total;2,349,502 Abroad and in South or Central America or in the Caribbean;Both sexes;Spanish;812,762 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign;1,536,740 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from a member country of the EU;99,685 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from an European country non-UE member;834 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from an African country;92 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from a North American country;2,631 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from a Caribbean, South or Central American country;1,433,157 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from an Asian countryde un país de Asia;257 Abroad and in South or Central America or in the Caribbean;Both sexes;Foreign, from an Oceania country or stateless;83 Abroad and in South or Central America or in the Caribbean;Men;Total;1,044,408 Abroad and in South or Central America or in the Caribbean;Men;Spanish;359,738 Abroad and in South or Central America or in the Caribbean;Men;Foreign;684,670 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from a member country of the EU;53,328 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from an European country non-UE member;369 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from an African country;41 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from a North American country;1,218 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from a Caribbean, South or Central American country;629,557 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from an Asian countryde un país de Asia;121 Abroad and in South or Central America or in the Caribbean;Men;Foreign, from an Oceania country or stateless;35 Abroad and in South or Central America or in the Caribbean;Women;Total;1,305,094 Abroad and in South or Central America or in the Caribbean;Women;Spanish;453,025 Abroad and in South or Central America or in the Caribbean;Women;Foreign;852,069 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from a member country of the EU;46,357 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from an European country non-UE member;466 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from an African country;51 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from a North American country;1,412 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from a Caribbean, South or Central American country;803,599 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from an Asian countryde un país de Asia;136 Abroad and in South or Central America or in the Caribbean;Women;Foreign, from an Oceania country or stateless;48 Abroad and in Asia;Both sexes;Total;371,226 Abroad and in Asia;Both sexes;Spanish;55,063 Abroad and in Asia;Both sexes;Foreign;316,163 Abroad and in Asia;Both sexes;Foreign, from a member country of the EU;6,432 Abroad and in Asia;Both sexes;Foreign, from an European country non-UE member;604 Abroad and in Asia;Both sexes;Foreign, from an African country;115 Abroad and in Asia;Both sexes;Foreign, from a North American country;689 Abroad and in Asia;Both sexes;Foreign, from a Caribbean, South or Central American country;424 Abroad and in Asia;Both sexes;Foreign, from an Asian countryde un país de Asia;307,705 Abroad and in Asia;Both sexes;Foreign, from an Oceania country or stateless;194 Abroad and in Asia;Men;Total;208,830 Abroad and in Asia;Men;Spanish;22,046 Abroad and in Asia;Men;Foreign;186,784 Abroad and in Asia;Men;Foreign, from a member country of the EU;3,582 Abroad and in Asia;Men;Foreign, from an European country non-UE member;270 Abroad and in Asia;Men;Foreign, from an African country;68 Abroad and in Asia;Men;Foreign, from a North American country;361 Abroad and in Asia;Men;Foreign, from a Caribbean, South or Central American country;249 Abroad and in Asia;Men;Foreign, from an Asian countryde un país de Asia;182,131 Abroad and in Asia;Men;Foreign, from an Oceania country or stateless;124 Abroad and in Asia;Women;Total;162,396 Abroad and in Asia;Women;Spanish;33,016 Abroad and in Asia;Women;Foreign;129,379 Abroad and in Asia;Women;Foreign, from a member country of the EU;2,850 Abroad and in Asia;Women;Foreign, from an European country non-UE member;335 Abroad and in Asia;Women;Foreign, from an African country;47 Abroad and in Asia;Women;Foreign, from a North American country;328 Abroad and in Asia;Women;Foreign, from a Caribbean, South or Central American country;175 Abroad and in Asia;Women;Foreign, from an Asian countryde un país de Asia;125,574 Abroad and in Asia;Women;Foreign, from an Oceania country or stateless;70 Abroad and in Oceania;Both sexes;Total;6,820 Abroad and in Oceania;Both sexes;Spanish;3,735 Abroad and in Oceania;Both sexes;Foreign;3,085 Abroad and in Oceania;Both sexes;Foreign, from a member country of the EU;939 Abroad and in Oceania;Both sexes;Foreign, from an European country non-UE member;28 Abroad and in Oceania;Both sexes;Foreign, from an African country;1 Abroad and in Oceania;Both sexes;Foreign, from a North American country;10 Abroad and in Oceania;Both sexes;Foreign, from a Caribbean, South or Central American country;11 Abroad and in Oceania;Both sexes;Foreign, from an Asian countryde un país de Asia;4 Abroad and in Oceania;Both sexes;Foreign, from an Oceania country or stateless;2,094 Abroad and in Oceania;Men;Total;3,529 Abroad and in Oceania;Men;Spanish;1,874 Abroad and in Oceania;Men;Foreign;1,655 Abroad and in Oceania;Men;Foreign, from a member country of the EU;471 Abroad and in Oceania;Men;Foreign, from an European country non-UE member;15 Abroad and in Oceania;Men;Foreign, from an African country;1 Abroad and in Oceania;Men;Foreign, from a North American country;4 Abroad and in Oceania;Men;Foreign, from a Caribbean, South or Central American country;4 Abroad and in Oceania;Men;Foreign, from an Asian countryde un país de Asia;1 Abroad and in Oceania;Men;Foreign, from an Oceania country or stateless;1,159 Abroad and in Oceania;Women;Total;3,291 Abroad and in Oceania;Women;Spanish;1,861 Abroad and in Oceania;Women;Foreign;1,430 Abroad and in Oceania;Women;Foreign, from a member country of the EU;467 Abroad and in Oceania;Women;Foreign, from an European country non-UE member;13 Abroad and in Oceania;Women;Foreign, from an African country;.. Abroad and in Oceania;Women;Foreign, from a North American country;5 Abroad and in Oceania;Women;Foreign, from a Caribbean, South or Central American country;7 Abroad and in Oceania;Women;Foreign, from an Asian countryde un país de Asia;3 Abroad and in Oceania;Women;Foreign, from an Oceania country or stateless;934