Abstract
Livestock guarding dogs (LGDs) have been used to protect livestock for millennia. While previous works suggested a single origin of modern LGDs, the degree and source of shared ancestry have not been tested. To address this, we generated genome-wide SNP data from 304 LGDs and combined it with public genomic data from 2,183 modern and 22 ancient dogs. Our findings reveal shared ancestry and extensive gene flow among modern LGD breeds which we attribute to historical livestock migrations. Additionally, admixture between LGDs and free-ranging dogs argues against reproductive isolation as a core mechanism for maintaining the specialized skills of LGDs. Finally, we identify two lineages within modern LGDs and uncover multiple ancestries tracing back to distinct Eurasian ancient dogs, concordant with the absence of a single ancestor. Overall, our work explores the complex evolutionary history of LGDs, offering valuable insights into how human and livestock co-migrations shaped this functional group.