Hepatitis E virus (HEV) is an emerging zoonotic virus of public health concern, of which pigs, wild boar and red deer are the main reservoirs. The European Food Safety Authority (EFSA) has recently prioritized the development of monitoring programs of HEV at different stages of the pig food chain, including outdoor pig farming. Pigs managed under these extensive production systems frequently share habitat and natural resources with wild boar and red deer during fattening stages and cross-species transmission of HEV among these species has previously been suggested. In this context, we aimed to (I) to evaluate the risk of HEV circulation within the production phases of extensively raised pigs and at the domestic-wildlife interface, and (II) to identify the genotypes circulating within these hosts. A total of 1452 pigs from seven different pig farms were longitudinally sampled during the breeding, rearing, and fattening production phases. In addition, 138 and 252 sympatric wild boar and red deer, respectively, were analysed. Anti-HEV antibodies were found in 1245 (85.7 %) out of the 1452 Iberian pigs sampled. The seroprevalence was 30.4 % in the breeding phase, 95.4 % in the rearing phase and 97.0 % in the fattening phase. Statistically significant differences (P < 0.05) were found among the three production phases. The seroprevalence was significantly higher (P < 0.001) in fattening pigs compared to those found in sympatric wild boar (31.9 %) and red deer (2.0 %). Three (1.0 %) out of the 293 serum pools analysed were positive for viral RNA. One of them was identified in pigs at the rearing phase (genotype 3 f) and two in wild boar (genotypes 3 f and 3 m). The high seroprevalence detected in extensively raised pigs, together with the detection of the zoonotic HEV-3 f and HEV-3 m subtypes in sympatric domestic and wild swine, highlights the risk of zoonotic transmission and the need to establish surveillance programs and control measures, particularly in breeding and rearing phase, in these epidemiological scenarios.