Abstract Huntington’s disease (HD) is a devastating monogenic neurodegenerative disease characterized by early, selective pathology in the basal ganglia despite the ubiquitous expression of mutant huntingtin. The molecular mechanisms underlying this region-specific neuronal degeneration and how these relate to the development of early cognitive phenotypes are poorly understood. Here, we show that there is selective loss of synaptic connections between the cortex and striatum in postmortem tissue from HD patients that is associated with the increased activation and localization of complement proteins, innate immune molecules, to markers of these synaptic elements. We also find that levels of these secreted innate immune molecules are elevated in the CSF of premanifest HD patients and correlate with established measures of disease burden. In preclinical genetic models of HD we show that complement proteins mediate the selective elimination of corticostriatal synapses at an early stage in disease pathogenesis marking them for removal by microglia, the brain’s resident macrophage population. This process requires mutant huntingtin to be expressed in both cortical and striatal neurons and inhibition of this complement-dependent elimination mechanism through administration of a therapeutically relevant C1q function blocking antibody or genetic ablation of a complement receptor on microglia, prevented synapse loss, increased excitatory input to the striatum and rescued the early development of visual discrimination learning and cognitive flexibility deficits in these models. Together, our findings implicate microglia and the complement cascade in the selective, early degeneration of corticostriatal synapses and the development of cognitive deficits in presymptomatic HD, and also provide new preclinical data to support complement as a therapeutic target for early intervention.