Herpes infections are caused by the herpes simplex virus (HSV). There are two primary types: HSV-1, which commonly causes oral herpes, and HSV-2, which typically results in genital herpes. Once contracted, the virus remains in the body and can reactivate periodically.