Gradients in environmental conditions, including climate factors and resource availability, occur along mountain inclines, providing a ‘natural laboratory’ to explore their combined impacts on microbial distributions. Conflicting spatial patterns observed across elevation gradients in soil bacterial community structure suggest that they are driven by various interacting factors at different spatial scales. Here, we investigated the relative impacts of non-resource (e.g., soil temperature, pH) and resource conditions (e.g., soil carbon and nitrogen) on the biogeography of soil bacterial communities across broad (i.e., along a 1,500 m mountain elevation gradient) and fine sampling scales (i.e., along sunny and shady aspects of a mountain ridge). Our analysis of 16S rRNA gene data confirmed that when sampling across distances of < 1,000 m, bacterial community composition was more closely related to the aspect of a site than its elevation. However, despite large differences in climate and resource-availability factors across elevation- and aspect-related gradients, bacterial community composition and richness were most strongly correlated with soil pH. These findings highlight the need to incorporate knowledge of multiple factors, including site aspect and soil pH for the appropriate use of elevation gradients as a proxy to explore the impacts of climate change on microbial community composition.