"An unnatural sex act committed between persons of the male sex or by humans with animals is punishable by imprisonment; the loss of civil rights may also be imposed." (Paragraph 175, German Penal Code, 1871)
The statute of Paragraph 175 was amended several times. The Nazis broadened the law in 1935 and increased its prosecutions by an order of magnitude; thousands died in concentration camps, regardless of guilt or innocence. East Germany reverted to the old version of the law in 1950, limited its scope to sex with youths under 18 in 1968, and abolished it entirely in 1988. West Germany retained the Nazi-era statute until 1969, when it was limited to "qualified cases"; it was further attenuated in 1973 and finally revoked entirely in 1994 after German reunification.