In this paper, we propose an eco‐epidemiological predator–prey model, modeling the spread of infectious keratoconjunctivitis among domestic and wild ungulates, during the summer season, when they intermigle in high mountain pastures. The disease can be treated in the domestic animals, but for the wild herbivores, it leads to blindness, with consequent death. The model shows that the disease can lead infected herbivores or their predators to extinction, even if it does not affect the latter. Boundedness of solutions and equilibria feasibility are obtained. Stability around the different equilibrium points is analyzed through eigenvalues and the Routh–Hurwitz criterion. Simulations are carried out to support the theoretical results. Sensitivity with respect of some parameters is investigated. The prey vaccination as control measure is introduced and simulated, although at present, the vaccine is not yet available, but just being developed. It would then possibly eradicate the infection in the domestic animals, which are considered a disease reservoir. Copyright © 2016 John Wiley & Sons, Ltd.