ABSTRACT: Female Aedes aegypti mosquitoes impose a severe global public health burden as primary vectors of multiple viral and parasitic pathogens. Under optimal environmental conditions, Aedes aegypti females have access to human hosts that provide blood proteins for egg development, conspecific males that provide sperm for fertilization, and freshwater that serves as an egg-laying substrate suitable for offspring survival. As global temperatures rise, Aedes aegypti females are faced with climate challenges, like intense droughts and intermittent precipitation, which create unpredictable and suboptimal conditions for the egg-laying step of their reproductive cycle. Aedes aegypti mosquitoes nonetheless show remarkable reproductive resilience, but how they achieve this is unknown. Here we show that under drought-like conditions simulated in the laboratory, mated, blood-fed Aedes aegypti females carrying mature eggs retain them in their ovaries for extended periods, while maintaining the viability of these eggs until they can be deposited in freshwater. Using transcriptomic and proteomic profiling of Aedes aegypti ovaries, we identify two previously uncharacterized genes – here named tweedledee and tweedledum – that show ovary-enriched, temporally-restricted expression during egg retention. These genes are mosquito-specific, linked within a syntenic locus, and rapidly evolving under positive selection, raising the possibility that they serve an adaptive function. Using loss-of-function mutagenesis to disrupt both genes, we show that, tweedledee and tweedledum, which encode secreted proteins, are specifically required for extended retention of viable eggs, such as during intermittent precipitation or drought. These results highlight an elegant example of taxon-restricted genes at the heart of an important adaptation that equips Aedes aegypti females with “insurance” to, when contextually appropriate, flexibly extend their reproductive sequence without losing reproductive capacity, thus allowing this species to exploit diverse and unpredictable habitats.