Studying the drivers of host specificity can contribute to our understanding of the origin and evolution of obligate pollination mutualisms. The preference–performance hypothesis predicts that host plant choice of female insects is related mainly to the performance of their offspring. Soil moisture is thought to be particularly important for the survival of larvae and pupae that inhabit soil. In the high Himalayas, Rheum nobile and R. alexandrae differ in their distribution in terms of soil moisture; that is, R. nobile typically occurs in scree with well‐drained soils, R. alexandrae in wetlands. The two plant species are pollinated by their respective mutualistic seed‐consuming flies, Bradysia sp1. and Bradysia sp2. We investigated whether soil moisture is important for regulating host specificity by comparing pupation and adult emergence of the two fly species using field and laboratory experiments. Laboratory experiments revealed soil moisture did have significant effects on larval and pupal performances in both fly species, but the two fly species had similar optimal soil moisture requirements for pupation and adult emergence. Moreover, a field reciprocal transfer experiment showed that there was no significant difference in adult emergence for both fly species between their native and non‐native habitats. Nevertheless, Bradysia sp1., associated with R. nobile, was more tolerant to drought stress, while Bradysia sp2., associated with R. alexandrae, was more tolerant to flooding stress. These results indicate that soil moisture is unlikely to play a determining role in regulating host specificity of the two fly species. However, their pupation and adult emergence in response to extremely wet or dry soils are habitat‐specific.