 Both male and female same-sex sexual activity have been legal in Kazakhstan since 1998.The age of consent is 16.Prior to 1997, Article 104 of the Penal Code of Kazakhstan used to criminalise "buggery".