Yan's family originated in Shandong. With the changes of the times, people named Yan migrated and multiplied from Shandong in order to survive and develop. According to statistics, there have been five large-scale migrations of Yan Hui Zongzi.
In the development history of Yan surname, the population growth was extremely slow before Qin and Han Dynasties. By the end of the Han Dynasty, the population began to increase. During the Tang and Song Dynasties, the population grew rapidly. During the Song, Yuan, Ming and Qing Dynasties, people surnamed Yan moved to various places, with a growing population and orderly clans and tribes.
Yan entered Sichuan late. In the Tang Dynasty, a man named Yan Yi became the county magistrate of Chengdu. This is the first person named Yan who entered Sichuan in history. Since then, there have been records of people surnamed Yan entering Sichuan. During the Tang Dynasty, Yan Zhenqing worked in Sichuan, where many of his sons and nephews were officials. During the Ming and Qing Dynasties, descendants of Yan Zhenqing from Huguang region entered Sichuan in large numbers and became the main body of Yan surname in Sichuan today.