Spain is part of Europe.
The European Union ( EU ) is a political and economic union of member states that are located primarily in Europe . Madrid ( [ məˈdrɪd ] , [ maˈðɾið ] , [ maˈðɾi ] ) is the capital city of the Kingdom of Spain and the largest municipality in both the Community of Madrid and Spain as a whole . Spain . By population , Spain is the sixth largest in Europe and the fifth in the European Union .