HPV is primarily transmitted through sexual contact, including vaginal, anal, and oral sex. It can also be spread through non-penetrative sexual activities and close skin-to-skin contact. In rare cases, it can be transmitted from mother to baby during childbirth.