Background: Mounting evidence links poor sleep quality with a higher risk of late-life dementia. However, the structural and cognitive correlates of insomnia are still not well understood. The study aims were to characterize the cognitive performance and brain structural pattern of cognitively unimpaired adults at increased risk for Alzheimer's disease (AD) with insomnia. Methods: This cross-sectional study included 1683 cognitively unimpaired middle/late-middle-aged adults from the ALFA (ALzheimer and FAmilies) study who underwent neuropsychological assessment, T1-weighted structural imaging (n = 366), and diffusion-weighted imaging (n = 334). The World Health Organization's World Mental Health Survey Initiative version of the Composite International Diagnostic Interview was used to define the presence or absence of insomnia. Multivariable regression models were used to evaluate differences in cognitive performance between individuals with and without insomnia, as well as potential interactions between insomnia and the APOE genotype. Voxel-based morphometry and tractbased spatial statistics were used to assess between-group differences and potential interactions between insomnia and the APOE genotype in gray matter volume and white matter diffusion metrics. Results: Insomnia was reported by 615 out of 1683 participants (36.5%), including 137 out of 366 (37.4%) with T1-weighted structural imaging available and 119 out of 334 (35.6%) with diffusion-weighted imaging. Individuals with insomnia (n = 615) performed worse in executive function tests than non-insomniacs and displayed lower gray matter volume in left orbitofrontal and right middle temporal cortex, bilateral precuneus, posterior cingulate cortex and thalamus, higher gray matter volume in the left caudate nucleus, and widespread reduction of mean and axial diffusivity in right hemisphere white matter tracts. Insomnia interacted with the APOE genotype, with APOE-ε4 carriers displaying lower gray matter volumes when insomnia was present, but higher volumes when insomnia was not present, in several gray matter regions, including the left angular gyrus, the bilateral superior frontal gyri, the thalami, and the right hippocampus.