In May 2000, a new statute was passed legalising gay male sex. It came into effect in September. The new statute bans only forced sex [R1.2].
Lesbian sex was never banned.
Male anal sex was prohibited by Criminal Code Article 113 [R1.2].
On 22 September 2017, it was reported that over the last several days, police in Baku, Azerbaijan carried out mass arrests of at least 100 members of the LGBT community. In official statements, local authorities and government-friendly NGOs described the arrests as a crackdown on prostitution, but lawyers and local activists describe indiscriminate arrests of gay men and transgender women in organised raids on apartments and bars, as well as seemingly random arrests on the street [R1.1].