Spain is divided into autonomous communities, provinces, and municipalities. It has a constitutional monarchy with King Felipe VI as head of state. Legislative power lies with the bicameral parliament consisting of the Congress of Deputies and Senate. Autonomous communities have their own parliaments and governments. Spain joined the European Union in 1986. The EU consists of 28 member states with shared economic and political cooperation. Key EU institutions include the European Parliament, Council of the European Union, European Commission, and Court of Justice.