Herpes is a common sexually transmitted infection caused by two types of viruses: herpes simplex virus type 1 (HSV-1) and herpes simplex virus type 2 (HSV-2). Anyone who is sexually active can get genital herpes. Genital herpes is spread through vaginal, anal, or oral sex with someone who has the infection. It can be spread even when there are no visible sores or symptoms.