The main vectors of Zika virus (ZIKV) and dengue virus (DENV) are Aedes aegypti and Ae. albopictus, with Ae. aegypti being more competent. However, the underlying mechanisms remain unclear. Here, we find Ae. albopictus shows comparable vector competence to ZIKV/DENV with Ae. aegypti by blood-feeding after antibiotic treatment or intrathoracic injection. This suggests that midgut microbiota can influence vector competence. Enterobacter hormaechei_B17 (Eh_B17) is isolated from field-collected Ae. albopictus and conferred resistance to ZIKV/DENV infection in Ae. aegypti after gut-transplantation. Sphingosine, a metabolite secreted by Eh_B17, effectively suppresses ZIKV infection in both Ae. aegypti and cell cultures by blocking viral entry during the fusion step, with an IC50 of approximately 10 μM. A field survey reveals that Eh_B17 preferentially colonizes Ae. albopictus compared to Ae. aegypti. And field Ae. albopictus positive for Eh_B17 are more resistant to ZIKV infection. These findings underscore the potential of gut symbiotic bacteria, such as Eh_B17, to modulate the arbovirus vector competence of Aedes mosquitoes. As a natural antiviral agent, Eh_B17 holds promise as a potential candidate for blocking ZIKV/DENV transmission.