Erythema multiforme (EM) is the most common type of erythema. Viral and bacterial infections cause it. Two of the most common causes are Herpes simplex virus (HSV) type 1 and 2 and Mycoplasma pneumoniae infections. More rarely, it can be a reaction to a drug or vaccine, according to The National Library of Medicine.