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 patients with HD that is associated with the increased activation and localization of complement proteins, innate immune molecules, to these synaptic elements. We also found that levels of these secreted innate immune molecules are elevated in the cerebrospinal fluid 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. 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; they also provide new preclinical data to support complement as a therapeutic target for early intervention.