Cognition is organized in a structured series of attentional episodes, allowing complex problems to be addressed through solution of simpler subproblems. A “multiple-demand” (MD) system of frontal and parietal cortex is active in many different kinds of tasks, and using data from neuroimaging, electrophysiology, neuropsychology, and cognitive studies of intelligence, I propose a core role for MD regions in assembly of the attentional episode. Monkey and human data show dynamic neural coding of attended information across multiple MD regions, with rapid communication within and between regions. Neuropsychological and imaging data link MD function to fluid intelligence, explaining some but not all “executive” deficits after frontal lobe lesio...