Abstract Background Understanding how species diversify is a long-standing question in biology. The allopatric speciation model is a classic hypothesis to explain the speciation process. This model supposes that there is no gene flow during the divergence process of geographically isolated populations. On the contrary, the speciation with gene flow model supposes that gene flow does occur during the speciation process. Whether allopatric species have gene flow during the speciation process is still an open question. Methods We used the genetic information from 31 loci of 24 Chinese Bamboo Partridges (Bambusicola thoracicus) and 23 Taiwan Bamboo Partridges (B. sonorivox) to infer the gene flow model of the two species, using the approximate Bayesian computation (ABC) model. The ecological niche model was used to infer the paleo-distribution during the glacial period. We also tested whether the two species had a conserved ecological niche by means of a background similarity test. Results The genetic data suggested that the post-divergence gene flow between the two species was terminated before the mid-Pleistocene. Furthermore, our ecological niche modeling suggested that their ecological niches were highly conserved, and that they shared an overlapping potential distribution range in the last glacial maximum. Conclusions The allopatric speciation model cannot explain the speciation process of the two Bamboo Partridges. The results of this study supported a scenario in which speciation with gene flow occurring between the allopatric species and have contributed to our understanding of the speciation process.