Germline stem cells (GSCs) in Drosophila are a valuable model to explore of how adult stem cells are regulated in vivo. Genetic dissection of this system has shown that stem cell fate is determined and maintained by the stem cell's somatic microenvironment or niche. In Drosophila gonads, the stem cell niche— the cap cell cluster in females and the hub in males—acts as a signaling center to recruit GSCs from among a small population of undifferentiated primordial germ cells (PGCs). Short-range signals from the niche specify and regulate stem cell fate by maintaining the undifferentiated state of the PGCs next to the niche. Germline cells that do not receive the niche signals because of their location assume the default fate and differentiate. Once GSCs are specified, adherens junctions maintain close association between the stem cells and their niche and help to orient stem cell division so that one daughter is displaced from the niche and differentiates. In females, stem cell fate depends on bone morphogenetic protein (BMP) signals from the cap cells; in males, hub cells express the cytokine-like ligand Unpaired, which activates the Janus kinase-signal transducers and activators of transcription (Jak-Stat) pathway in stem cells. Although the signaling pathways operating between the niche and stem cells are different, there are common general features in both males and females, including the arrangement of cell types, many of the genes used, and the logic of the system that maintains stem cell fate.