Arboviruses are transmitted by mosquitoes and other arthropods to humans and animals. The risk associated with these viruses is increasing worldwide, including new emergence in Europe and the Americas. Anopheline mosquitoes are vectors of human malaria but are believed to transmit one known arbovirus, oânyong-nyong virus, whereas Aedes mosquitoes transmit many. Anopheles interactions with viruses have been little studied, and the initial antiviral response in the midgut has not been examined. Here, we determine the antiviral immune pathways of the Anopheles gambiae midgut, the initial site of viral infection after an infective blood meal. We compare them with the responses of the post-midgut systemic compartment, which is the site of the subsequent disseminated viral infection. Normal viral infection of the midgut requires bacterial flora and is inhibited by the activities of immune deficiency (Imd), JAK/STAT, and Leu-rich repeat immune factors. We show that the exogenous siRNA pathway, thought of as the canonical mosquito antiviral pathway, plays no detectable role in antiviral defense in the midgut but only protects later in the systemic compartment. These results alter the prevailing antiviral paradigm by describing distinct protective mechanisms in different body compartments and infection stages. Importantly, the presence of the midgut bacterial flora is required for full viral infectivity to Anopheles, in contrast to malaria infection, where the presence of the midgut bacterial flora is required for protection against infection. Thus, the enteric flora controls a reciprocal protection tradeoff in the vector for resistance to different human pathogens.