Herpes is primarily spread through sexual activity with an infected person. Additionally, it can be transmitted via skin-to-skin contact during anal, vaginal, or oral sex. Safe sex practices are essential for prevention because the virus can spread without obvious symptoms.