 Forty years after Poland lost its independence in 1795, the sodomy laws of Russia, Prussia, and Austria came into force in the partitioned Polish territory.Poland regained its independence in 1918 and abandoned the laws of the occupying powers.In 1932, Poland codified the equal age of consent for homosexuals and heterosexuals at 15.