The Anopheles mosquito is one of thousands of species in which sex differences play a central role in their biology, as only females need a blood meal in order to produce eggs. Sex differentiation is regulated by sex chromosomes, but their presence creates a dosage imbalance between males (XY) and females (XX). Dosage compensation (DC) can re-equilibrate the expression of sex-chromosomal genes, but because DC mechanisms have only been fully characterized in a few model organisms, key questions about its evolutionary diversity and functional necessity remain unresolved. Here we report the discovery of a previously uncharacterized gene (SOA) as a master regulator of DC in the malaria mosquito Anopheles gambiae. Sex-specific alternative splicing prevents functional SOA protein expression in females. The male isoform encodes a DNA-binding protein that binds the promoters of active X chromosomal genes. Expressing male SOA is sufficient to induce DC in female cells. Male mosquitoes lacking SOA or female mosquitos ectopically expressing the male isoform exhibit X chromosome misregulation, which is compatible with viability but causes developmental delay. Thus, our molecular analysis of the first DC master regulator in a non-model organism elucidates the evolutionary steps leading to the establishment of a chromosome-specific fine-tuning mechanism. Overall design: CUT&Tag libraries generated from WT and SOA-R pupae are analyzed. Each group has two biological replicates (except for SOA-R female IgG with one replicate). The IgG antibody is a negative control for unspecific binding of the antibodies.