Host-associated bacterial communities on the skin act as the first line of defence against invading pathogens. Yet, for most natural systems, we lack a clear understanding of how temperature variability affects structure and composition of skin bacterial communities and, in turn, promotes or limits the colonization of opportunistic pathogens. Here, we examine how natural temperature fluctuations might be related to changes in skin bacterial diversity over time in three amphibian populations infected by the pathogenic fungus Batrachochytrium dendrobatidis (Bd). Our focal host species (Eleutherodactylus coqui) is a direct-developing frog that has suffered declines at some populations in the last 20 years, while others have not experienced any changes. We quantified skin bacterial alpha- and beta-diversity at four sampling time points, a period encompassing two seasons and ample variation in natural infections and environmental conditions. Despite the different patterns of infection across populations, we detected an overall increase in bacterial diversity through time, characterized by the replacement of bacterial operational taxonomic units (OTUs). Increased frog body temperatures possibly allowed the colonization of bacteria as well as the recruitment of a subset of indicator OTUs, which could have promoted the observed changes in diversity patterns. Our results suggest that natural environmental fluctuations might be involved in creating opportunities for bacterial replacement, potentially attenuating pathogen transmission and thus contributing to host persistence in E. coqui populations.