Advances in understanding the process of species formation require an integrated perspective that includes the evaluation of spatial, ecological and genetic components. One approach is to focus on multiple stages of divergence within the same species. Species that comprise phenotypically different populations segregated in apparently distinct habitats, in which range is presently continuous but was putatively geographically isolated provide an interesting system to study the mechanisms of population divergence. Here, we attempt to elucidate the role of ecology and geography in explaining observed morphological and genetic variation in an understorey-dwelling bird endemic to southeastern Africa, where two subspecies are recognized according to phenotype and habitat affinity. We carried out a range-wide analysis of climatic requirements, morphological and genetic variation across southeast Africa to test the hypothesis that the extent of gene flow among populations of the brown scrub-robin are influenced by their distinct climatic niches. We recovered two distinct trends depending on whether our analyses were hierarchically structured at the subspecies or at the within subspecies level. Between subspecies we found pronounced morphological differentiation associated with strong reproductive isolation (no gene flow) between populations occupying divergent climatic niches characterized by changes in the temperature of the warmest and wettest month. In contrast, within subspecies, we recovered continuous morphological variation with extensive gene flow among populations inhabiting the temperate and sub-tropical forests of southern Africa, despite divergence along the climate axis that is mainly determined by minimum temperature and precipitation of the coldest months. Our results highlight the role of niche divergence as a diversifying force that can promote reproductive isolation in vertebrates.