They are usually transmitted through sexual contact, including vaginal, anal, and oral sex. Some STDs, like HIV, can also be transmitted through sharing needles or from mother to child during childbirth.