Various countries under dictatorships in the 20th century were very anti-homosexual, such as in the Soviet Union, in Nazi Germany and in Spain under Francisco Franco's regime. In contrast, after Poland regained independence after World War I, it went on in 1932 to become the second country in 20th-century Europe to decriminalise homosexual activity (after the Soviet Union, which had decriminalized it in 1917 under the Russian Soviet Federative Socialist Republic, but re-criminalized it in 1933 under Stalin), followed by Denmark in 1933, Iceland in 1940, Switzerland in 1942 and Sweden in 1944.