L-3,4-dihydroxyphenylalanine (L-DOPA), a naturally occurring tyrosine derivative, is prevalent in environments that include mosquito habitats, potentially serving as part of their diet. Given its role as a precursor for melanin synthesis we investigated the effect of dietary L-DOPA on mosquito physiology and immunity to Plasmodium falciparum and Cryptococcus neoformans infection. Dietary L-DOPA was incorporated into mosquito melanin via a non-canonical pathway and had profound transcriptional effects that were associated with enhanced immunity, increased pigmentation, and reduced lifespan. Increased melanization resulted in an enhanced capacity to absorb electromagnetic radiation that affected mosquito temperatures. Bacteria in the mosquito microbiome were sources of dopamine, which is a substrate for melanization. Our results illustrate how an environmentally abundant amino acid analogue can affect mosquito physiology and suggest its potential usefulness as an environmentally friendly vector control agent to reduce malaria transmission, warranting further research and field studies.