Abstract. Batrachochytrium dendrobatidis (Bd) is a globally distributed fungal pathogen of amphibians that has caused amphibian population declines. Prevalence and infection intensity of Bd should vary spatially across heterogeneous landscapes because survival of the pathogen depends on environmental conditions including humidity and temperature. Wetland temperatures should vary with forest canopy cover, but few studies have examined the relationship between Bd prevalence and canopy cover. We sampled anurans for Bd at 33 wetlands in Illinois across a canopy cover gradient during the severe drought of 2012 and during more typical weather in 2013. We hypothesized that anurans from closed canopy wetlands would have higher Bd prevalence than anurans from open canopy wetlands because high canopy cover would prevent temperatures from exceeding Bd's critical maximum temperature as often. We used occupancy modeling to examine how Bd prevalence varied spatially in relation to environmental covariates, and to determine if weather conditions altered such relationships. We analyzed all common species combined and Spring Peepers (Pseudacris crucifer) separately. Bd was widespread among the study wetlands. During the drought year of 2012, however, Bd prevalence and infection intensity were substantially reduced. Although wetland temperatures were related negatively to canopy cover, the influence of canopy cover on Bd was complex. Bd prevalence for Spring Peepers was related positively to canopy cover during the drought, but not in the non-drought year. Bd prevalence for all common species was not related positively to canopy cover in either year. Effects of other environmental covariates, such as water depth, also differed between years. Weather conditions had a large impact on Bd infection patterns, which makes predicting pathogen dynamics difficult. In the Midwest region of the United States, climate change models predict more frequent droughts, which may generally inhibit Bd while also altering the effect of environmental factors such as canopy cover on Bd prevalence for amphibians.