Background: The mosquito Aedes aegypti is a devastating disease vector transmitting several important human arboviral diseases. In its native range in Africa, the mosquito can be found in both the ancestral forest habitat and anthropogenic habitats such as villages. How do the different habitats impact the population genetic structure of the local mosquito populations? Methods: To address this question, we simultaneously sampled Ae. aegypti from the forest and local villages in La Lopé, Gabon and Rabai, Kenya. The mosquitoes were genotyped at 12 microsatellite loci and a panel of ~25,000 single nucleotide polymorphisms (SNPs), which allowed us to estimate their genetic ancestries and the population genetic structure related to habitats and sampling sites. Results: In the context of the global population genetic structure of Ae. aegypti, clustering analysis showed that mosquitoes from the same locality (La Lopé or Rabai) have similar genetic ancestry, regardless of their habitats. Further analysis at the local scale also found no strong genetic differentiation between the forest and village mosquitoes in both La Lopé and Rabai. Interestingly, these results from our 2017 samples from Rabai, Kenya contrast to the documentation of genetic differentiation between village and forest mosquito collections from 1975-1976 and 2009. Between-habitat measures of genetic difference (F st) vary across the genome, with a peak of high divergence observed at the third chromosome only in the La Lopé populations. Conclusion: Collectively, these results demonstrated that there is little genetic isolation between forest and village habitats, which suggests possible extensive gene flow between them. From an epidemiological perspective, the forest habitat could act as a refuge for mosquitoes against vector control programmes in the domestic settings. Moreover, sylvatic populations could play a role in zoonotic pathogen transferred to humans. Therefore, future studies on disease transmission and vector control planning in the study area should take natural populations into consideration.