Number of LGBT-related laws changed over time
- JanuaryHomosexual activity becomes illegal (death penalty as punishment).
- January 27
- (date unknown)Same-sex adoption becomes single only.Date reflects beginning of British colonization of Malaysia. Homosexuality is illegal in Malaysia.
- DecemberHomosexual activity becomes legal.In 1823, The Supreme Court of Ohio ruled in Key v. Vattier that the state did not recognize common-law crimes; the legality of sodomy was no longer unclear.
- DecemberHomosexual activity becomes legal.In 1822, Alabama's Supreme Court ruled in the case of Coburn v. Harwood that sodomy was not an indictable offense in Alabama under the common law.
- July 9Equal age of consent becomes equal.The age of consent for homosexual relations is equal to that of heterosexual ones in El Salvador.
- Homosexual activity becomes legal.The first Penal Code in El Salvador removed all mentions of sodomy as a crime in 1822.
- January 1Equal age of consent becomes equal.The age of consent is set equally at 18 years of age in the Code for the protection of the rights of children and adolescents.
- Homosexual activity becomes legal.