The process by which an undifferentiated (unspecialized) cell becomes a specialized cell (like heart, liver or muscle cells).