įor most of the 20th century, homosexual sex was banned in the People's Republic of China until it was legalized in 1997. On the other hand, Gulik's study argued that the Mongol Yuan dynasty introduced a more ascetic attitude to sexuality in general. Opposition to homosexuality, according to the study by Hinsch, did not become firmly established in China until the 19th and 20th centuries through the Westernization efforts of the late Qing Dynasty and early Republic of China. Several early Chinese emperors are speculated to have had homosexual relationships accompanied by heterosexual ones. According to one study, for some time after the fall of the Han Dynasty, homosexuality was widely accepted in China but this has been disputed.
Homosexuality has been documented in China since ancient times.