As a member of the Scathophagidae family, Scathophaga stercoraria (S. stercoraria) is widely distributed globally and is closely associated with animal feces. It is also a species of great interest to many scientific studies. However, its phylogenetic relationships are poorly understood. In this study, S. stercoraria was found in plateau pikas for the first time. The potential cause of its presence in the plateau pikas was discussed and it was speculated that the presence of S. stercoraria was related to the yak feces. In addition, 2 nuclear genes (18SrDNA and 28SrDNA), 1 mitochondrial gene (COI), and the complete mitochondrial genome of S. stercoraria were sequenced. Phylogenetic trees constructed based on 13 Protein coding genes (13PCGs), 18S and 28S rDNA showed that S. stercoraria is closely related to the Calliphoridae family; phylogenetic results based on COI suggest that within the family Scathophagidae, S. stercoraria is more closely related to the genus Leptopa, Micropselapha, Parallelomma and Americina. Divergence times estimated using the COI gene suggest that the divergence formation of the genus Scathophaga is closely related to changes in biogeographic scenarios and potentially driven by a combination of uplift of the Qinghai-Tibetan Plateau (QTP) and dramatic climate changes. These results provide valuable information for further studies on the phylogeny and differentiation of the Scathophaga genus in the future.