Global climate change is mostly characterized by temperature increase and fluctuating precipitation events, which may affect the spring phenology and mortality rate of insects. However, the interaction effect of temperature and precipitation on species performance has rarely been examined. Here we studied the response of the gall-making Tephritid fly Urophora stylata (Diptera: Tephritidae) to artificial warming, changes in precipitation, and the presence of galls. Our results revealed a significant interaction effect of warming, precipitation, and galls on the life-history traits of the focal species. Specifically, when the galls were intact, warming had no effect on the phenology and increased the mortality of the fly under decreased precipitation, but it significantly advanced the timing of adult emergence and had no effect on the mortality under increased precipitation. When galls were removed, warming significantly advanced the timing of emergence and increased fly mortality, but precipitation showed no effect on the phenology and mortality. In addition, gall removal significantly increased adult fresh mass for both females and males. Our results indicate that the effect of elevated temperature on the performance of species may depend on other environmental conditions, such as variations in precipitation, and species traits like the formation of galls.