Long recognized as a threat to wildlife, particularly for large carnivores, livestock grazing in protected areas can potentially undermine conservation objectives. The interspecific interactions among livestock, snow leopards (Panthera uncia), and their wild prey in fragile Asian highland ecosystems have been a subject of debate. We strategically deployed 164 camera traps in the Wolong National Nature Reserve to systematically investigate the activities of snow leopards, their primary wild ungulate prey species, and free-ranging livestock. We found that snow leopard habitat use was influenced by both wild prey and livestock. Blue sheep served as the main wild prey that spatially attracted snow leopards and coexisted with yaks while free-ranging yaks significantly restricted snow leopard habitat use both temporally and spatially.This study challenges the conventional understanding that livestock indirectly impacts large carnivores by competing with and displacing wild prey. Our findings highlight that free-ranging yaks within the alpine canyon terrain could directly limit snow leopard habitat use, suggesting a potential risk of grazing in reducing apex predator distribution and jeopardizing their populations. Consequently, managing their coexistence in shared habitats requires a more nuanced approach. Furthermore, our research underscores the importance of further research efforts aimed at enhancing our comprehension of the complex interplay within animal communities and ecosystems. This knowledge will contribute to the development of informed, evidence-based conservation strategies and policies.