Pyramidal neurons of the neocortex can be subdivided into two major groups: deep- (DL) and upper-layer (UL) neurons. Here we report that the expression of the AT-rich DNA-binding protein Satb2 defines two subclasses of UL neurons: UL1 (Satb2 positive) and UL2 (Satb2 negative). In the absence of Satb2, UL1 neurons lose their identity and activate DL- and UL2-specific genetic programs. UL1 neurons in Satb2 mutants fail to migrate to superficial layers and do not contribute to the corpus callosum but to the corticospinal tract, which is normally populated by DL axons. Ctip2, a gene required for the formation of the corticospinal tract, is ectopically expressed in all UL1 neurons in the absence of Satb2. Satb2 protein interacts with the Ctip2 genomic region and controls chromatin remodeling at this locus. Satb2 therefore is required for the initiation of the UL1-specific genetic program and for the inactivation of DL- and UL2-specific genes.