Danish nationality law
Danish nationality law is governed by the Constitutional Act the Realm of Denmark (of 1953) and the Consolidated Act of Danish Nationality (of 2003, with amendment in 2004). Danish nationality can be acquired in one of the following ways: In December 2018, the law on Danish citizenship was changed so that a handshake was mandatory during the ceremony. The regulation was made in an attempt to target members of the Islamist group Hizb ut-Tahrir from receiving Danish citizenship, since many of them refuse to shake hands with individuals of the opposite sex. Naturalisation as a Danish  citizen. According to Statistics Denmark, 3,267 foreigners living in Denmark replaced their foreign citizenship with Danish citizenship in 2012. A total of 71.4% of all those who were naturalized in 2012 were from the non-Western world. Half of all new Danish citizenships in 2012 were given to people from Iraq, Afghanistan, Turkey, Somalia and Iran. Crime. Immigrants who have committed crimes may be denied Danish citizenship. For instance, immigrants who have received a prison sentence of one year or more, or at least three months for crimes against a person cannot receive citizenship. Convictions which have resulted in  a fine also carries with it a time period for immigrants, where citizenship applications are rejected up to 4.5 years after the fine. Upon several offences, the period is extended by 3 years. In April 2021, the Mette Frederiksen Cabinet approved regulation which stops awarding citizenship to foreigners who had received a prison sentence in court which also encompassed suspended prison sentences. Previously, awarding citizenship was possible for foreigners with a prison sentence of less than a year. Dual citizenship. In October 2011, the newly elected centre-left coalition government indicated its intention to permit dual citizenship. On 18 December  2014, Parliament passed a bill to allow Danish citizens to become foreign nationals without losing their Danish citizenship, and to allow foreign nationals to acquire Danish citizenship without renouncing their prior citizenship. A provision in the bill also allows former Danish nationals who lost their citizenship as a result of accepting another to reobtain Danish citizenship. This provision expired in 2020. A separate provision, lasting until 2017, allows current applicants for Danish citizenship who have been approved under the condition they renounce their prior citizenship to retain their prior nationality as they become Danish citizens. The law came into force  on 1 September 2015. Anyone with Danish (or other) citizenship may be required by a country of which they are also citizens to give up their other (Danish) citizenship, although this cannot be enforced outside the jurisdiction of the country in question. For example Japan does not permit multiple citizenship, while Argentina has no restrictions. Citizenship of the European Union. Citizenship of the European Union for Danish citizens varies in each part of The unity of the Realm. Denmark. Danish citizens residing in Denmark proper are also citizens of the European Union under European Union law and thus enjoy  rights of free movement and have the right to vote in elections for the European Parliament. When in a non-EU country where there is no Danish embassy, Danish citizens have the right to get consular protection from the embassy of any other EU country present in that country. Danish citizens can live and work in any country within the EU as a result of the right of free movement and residence granted in Article 21 of the EU Treaty. Greenland. Greenland joined the European Economic Community along with Denmark proper in 1973 but left in 1985. Although Greenland is  not part of the European Union, but remains associated with the EU through its OCT-status. The associated relationship with the EU also means that Greenlandic nationals are EU citizens. This allows Greenlanders to move and reside freely within the EU. Faroe Islands. The Faroe Islands have never been part of the EU or its predecessors, and EU treaties do not apply to the islands. Consequently, Danish citizens residing in the Faroe Islands are not EU citizens within the meaning of the treaties. However, they can choose between a non-EU Danish-Faroese passport (which is green and modelled on  pre-EU Danish passport) or a regular Danish EU passport. Some EU member states may treat Danish citizens residing in the Faroe Islands the same as other Danish citizens and thus as EU citizens. Concerning citizenship of the European Union as established in the Maastricht Treaty, Denmark proper obtained an opt-out in the Edinburgh Agreement, in which EU citizenship does not replace national citizenship and each member state is free to determine its nationals according to its own nationality law. The Amsterdam Treaty extends this to all EU member states, which renders the Danish opt-out "de facto" meaningless . Travel freedom of Danish citizens. Visa requirements for Danish citizens are administrative entry restrictions by the authorities of other states placed on citizens of the Kingdom of Denmark. In May 2018, Danish citizens had visa-free or visa-on-arrival access to 185 countries and territories, ranking the Danish passport 5th in the world according to the Henley visa restrictions index. The Danish nationality is ranked fourth in The Quality of Nationality Index (QNI). This index differs from the Henley Passport Index, which focuses on external factors including travel freedom. The QNI considers, besides travel freedom, internal factors such as  peace & stability, economic strength, and human development as well.