A better understanding of the effect of malaria control interventions on vector and parasite populations, acquired immunity, and burden of the disease is needed to guide strategies to eliminate malaria from highly endemic areas. We monitored and analysed the changes in malaria epidemiology in a village community in Senegal, west Africa, over 22 years. Between 1990 and 2012, we did a prospective longitudinal study of the inhabitants of Dielmo, Senegal, to identify all episodes of fever and investigate the relation between malaria host, vector, and parasite. Our study included daily medical surveillance with systematic parasite detection in individuals with fever. We measured parasite prevalence four times a year with cross-sectional surveys. We monitored malaria transmission monthly with night collection of mosquitoes. Malaria treatment changed over the years, from quinine (1990-94), to chloroquine (1995-2003), amodiaquine plus sulfadoxine-pyrimethamine (2003-06), and finally artesunate plus amodiaquine (2006-12). Insecticide-treated nets (ITNs) were introduced in 2008. We monitored 776 villagers aged 0-101 years for 2 378 150 person-days of follow-up. Entomological inoculation rate ranged from 142·5 infected bites per person per year in 1990 to 482·6 in 2000, and 7·6 in 2012. Parasite prevalence in children declined from 87% in 1990 to 0·3 % in 2012. In adults, it declined from 58% to 0·3%. We recorded 23 546 fever episodes during the study, including 8243 clinical attacks caused by Plasmodium falciparum, 290 by Plasmodium malariae, and 219 by Plasmodium ovale. Three deaths were directly attributable to malaria, and two to severe adverse events of antimalarial drugs. The incidence of malaria attacks ranged from 1·50 attacks per person-year in 1990 to 2·63 in 2000, and to only 0·046 in 2012. The greatest changes were associated with the replacement of chloroquine and the introduction of ITNs. Malaria control policies combining prompt treatment of clinical attacks and deployment of ITNs can nearly eliminate parasite carriage and greatly reduce the burden of malaria in populations exposed to intense perennial malaria transmission. The choice of drugs seems crucial. Rapid decline of clinical immunity allows rapid detection and treatment of novel infections and thus has a key role in sustaining effectiveness of combining artemisinin-based combination therapy and ITNs despite increasing pyrethroid resistance. Pasteur Institutes of Dakar and Paris, Institut de Recherche pour le Développement, and French Ministry of Cooperation.