 Sodomy was first criminalized in Japan in 1872, in the early Meiji era, to comply with the newly introduced beliefs of Western culture and the Qing legal codes.But this provision was repealed only seven years later by the Penal Code of 1880 in accordance with the Napoleonic Penal Code.Since then, Japan has had no laws against homosexuality.