BackgroundThe margins of a species’ range might be located at the margins of a species’ niche, and in such cases, can be highly vulnerable to climate changes. They, however, may also undergo significant evolutionary changes due to drastic population dynamics in response to climate changes, which may increase the chances of isolation and contact among species. Such species interactions induced by climate changes could then regulate or facilitate further responses to climatic changes. We hypothesized that climate changes lead to species contacts and subsequent genetic exchanges due to differences in population dynamics at the species boundaries. We sampled two closely related Rubus species, one temperate (Rubus palmatus) and the other subtropical (R. grayanus) near their joint species boundaries in southern Japan. Coalescent analysis, based on molecular data and ecological niche modelling during the Last Glacial Maximum (LGM), were used to infer past population dynamics. At the contact zones on Yakushima (Yaku Island), where the two species are parapatrically distributed, we tested hybridization along altitudinal gradients.ResultsCoalescent analysis suggested that the southernmost populations of R. palmatus predated the LGM (~20,000 ya). Conversely, populations at the current northern limit of R. grayanus diverged relatively recently and likely represent young outposts of a northbound range shift. These population dynamics were partly supported by the ensemble forecasting of six different species distribution models. Both past and ongoing hybridizations were detected near and on Yakushima. Backcrosses and advanced-generation hybrids likely generated the clinal hybrid zones along altitudinal gradients on the island where the two species are currently parapatrically distributed.ConclusionsClimate oscillations during the Quaternary Period and the response of a species in range shifts likely led to repeated contacts with the gene pools of ecologically distinct relatives. Such species interactions, induced by climate changes, may bring new genetic material to the marginal populations where species tend to experience more extreme climatic conditions at the margins of the species distribution.Electronic supplementary materialThe online version of this article (doi:10.1186/s12862-014-0209-9) contains supplementary material, which is available to authorized users.