The thymic stromal compartment consists of several cell types that collectively enable the attraction, survival, expansion, migration, and differentiation of T-cell precursors. The thymic epithelial cells constitute the most abundant cell type of the thymic microenvironment and can be differentiated into morphologically, phenotypically, and functionally separate subpopulations of the postnatal thymus. All thymic epithelial cells are derived from the endodermal lining of the third pharyngeal pouch. Very soon after the formation of a thymus primordium and prior to its vascularization, thymic epithelial cells orchestrate the first steps of intrathymic T-cell development, including the attraction of lymphoid precursor cells to the thymic microenvironment. The correct segmentation of pharyngeal epithelial cells and their subsequent crosstalk with cells in the pharyngeal arches are critical prerequisites for the formation of a thymus anlage. Mutations in several transcription factors and their target genes have been informative to detail some of the complex mechanisms that control the development of the thymus anlage. This review highlights recent findings related to the genetic control of early thymus organogenesis and provides insight into the molecular basis by which lymphocyte precursors are attracted to the thymus.