Homosexuality has been documented throughout history and across cultures. In some societies, it was accepted and even celebrated, while in others it was stigmatized or criminalized. The modern understanding of homosexuality as an inherent aspect of identity emerged in the late 19th and early 20th centuries. Since then, the rights and acceptance of homosexual individuals have varied greatly around the world and continue to evolve.