Origins
Two Origins
The Yan surname has two main origins: Ji and Mi. The Ji branch has three sub-branches, while the Mi branch arose from a Chu grandee who held Yan as his fief.
Reference: 阎姓起源分布与家谱家族
Ethnic Origins
After the Northern and Southern Dynasties, some non-Han groups historically adopted the Yan surname, including the Xianbei Yan lineage of Heyin in Henan and the collective adoption of Yan by the Manchu Biyamuci clan of the Eight Banners in the Qing dynasty.
Reference: 阎姓起源分布与家谱家族
Migration and Distribution
Distribution from Pre-Qin to Tang
Before the Qin, the Yan surname was active in Henan, Shanxi, and Hubei. During the Qin and Han, it spread to Shaanxi, Gansu, Sichuan, Shandong, Hebei, and Inner Mongolia. In the Tang, it developed rapidly in Shanxi and became one of Taiyuan Commandery's ten renowned surnames.
Reference: 阎姓起源分布与家谱家族
Song-Dynasty Distribution
In the Song dynasty, the Yan surname numbered about 200,000. It was concentrated mainly in Sichuan, Shandong, Henan, and Shaanxi, which together accounted for about 66% of the Yan population; two major clusters formed in western Chuan-Qin and eastern Yu-Lu.
Reference: 阎姓起源分布与家谱家族
Ming-Dynasty Contraction
In the Ming dynasty, the Yan population was about 120,000. Shanxi, Shandong, Hebei, and Henan together contained about 95% of it; overall, its distribution shifted eastward and contracted into the Jin-Lu-Ji-Yu region.
Reference: 阎姓起源分布与家谱家族