When Azerbaijan became part of USSR, despite in Lenin-era of Soviet Russia homosexuality was not banned, it remained as crime in Azerbaijan. As the homosexuality was most widespread in Azerbaijan, Turkmenia, Uzbekistan and Georgia, the legislation on persecution of homosexuals remained in force in 1920's.