Genital herpes is a sexually transmitted infection (STI) caused by the herpes simplex virus, which also causes cold sores.