Stem-cell functions require activation of stem-cell-intrinsic transcriptional programs and extracellular interaction with a niche microenvironment. How the transcriptional machinery controls residency of stem cells in the niche is unknown. Here we show that Id proteins coordinate stem-cell activities with anchorage of neural stem cells (NSCs) to the niche. Conditional inactivation of three Id genes in NSCs triggered detachment of embryonic and postnatal NSCs from the ventricular and vascular niche, respectively. The interrogation of the gene modules directly targeted by Id deletion in NSCs revealed that Id proteins repress bHLH-mediated activation of Rap1GAP, thus serving to maintain the GTPase activity of RAP1, a key mediator of cell adhesion. Preventing the elevation of the Rap1GAP level countered the consequences of Id loss on NSC-niche interaction and stem-cell identity. Thus, by preserving anchorage of NSCs to the extracellular environment, Id activity synchronizes NSC functions to residency in the specialized niche.