Differentiation is driven by a combination of genetic factors and external signals, including growth factors, hormones, and interactions with the extracellular matrix. These signals activate specific gene expression pathways, leading to the development of specialized cell functions.