Equid herpesvirus (EHV) is a contagious viral disease affecting horses, causing illness characterized by respiratory symptoms, abortion and neurological disorders. It is common worldwide and causes severe economic losses to the equine industry. The present study was aimed at investigating the incidence of EHVs, the genetic characterization of Tunisian isolates and a spatiotemporal study, using 298 collected samples from diseased and clinically healthy horses. The global incidence of EHV infection was found to be about 71.81%. EHV2 and EHV5 were detected in 146 (48.99%) and 159 (53.35%) sampled horses, respectively. EHV1 was detected in 11 samples (3.69%); EHV4 was not detected. Co-infections with EHV1-EHV2, EHV1-EHV5 and EHV2-EHV5 were observed in 0.33%, 1.34% and 31.54% of tested horses, respectively. Phylogenetic analyses showed that gB of EHV2 and EHV5 displays high genetic diversity with a nucleotide sequence identity ranging from 88 to 100% for EHV2 and 97.5 to 100% for EHV5. Phylogeography suggested Iceland and USA as the most likely countries of origin of the Tunisian EHV2 and EHV5 isolates. These viruses detected in Tunisia seemed to be introduced in the 2000s. This first epidemiological and phylogeographic study is important for better knowledge of the evolution of equid herpesvirus infections in Tunisia.