Yan Song (3 March 1480 – 1565) was a Chinese scholar-official during the Ming dynasty. He held various high-ranking positions during the reign of the Jiajing Emperor in the mid-16th century, including minister of rites (1536–1543), grand secretary (1542–1562), and head of the Grand Secretariat (1544–1545, 1548–1562). His service as grand secretary was the longest in three centuries of Ming rule.

Yan came from a merchant family in Jiangxi Province with ancestral roots in Shaowu. His father was a teacher and principal at a local school. After passing the civil service examinations, he excelled in the final round, the palace examination, in 1505, ranking fifth among all candidates. As a distinguished graduate of the examinations, he was appointed to the Hanlin Academy, where he eventually rose to the position of Hanlin academician and head of the academy in Nanjing. From 1525 to 1528, he served as the chancellor of the Imperial University, and later held the positions of vice minister of rites (1528–1531) in Beijing and minister of rites (1531–1536) in Nanjing. In 1536, he returned to Beijing to assume the high-ranking roles of minister of rites and grand secretary. In his role as minister of rites, he oversaw important tasks such as rituals and ceremonies, foreign relations, state Confucian schools, civil service examinations, and the affairs of the imperial family. As a minister and one of the grand secretaries, he was one of the closest advisors to the Emperor, and in the 1550s, he was the Emperor's most trusted confidant. As a statesman, he was diligent and responsible, while also maintaining a polite and modest demeanor. In his political dealings, he often sought compromise solutions.

As a prominent statesman, Yan was frequently sought after for support and often delegated the task of dealing with applicants to his son, Yan Shifan. Their political rivals repeatedly accused Yan Shifan of engaging in corrupt practices and using bribery to influence politics. Despite defending himself against these accusations for a considerable amount of time, Yan Song was ultimately removed from his position in 1562 due to his advanced age, and his son was also exiled. In 1564–1565, Yan Shifan was accused of plotting a rebellion and was subsequently executed. The authorities seized the family's immense wealth, accumulated during Yan Song's time in high office, leaving Yan Song to live out his final days in poverty and isolation.

Youth and early career Yan Song was born on 3 March 1480 during China's Ming dynasty in Fenyi, Jiangxi Province. Although his family was registered as artisans, they were actually engaged in trade. Later, when Yan became wealthy, he joined the wholesale trade with his son. Together, they owned several shops in Yangzhou, the leading commercial center in the southern part of the country. Yan Song's father, Yan Huai (; 1453–1495), was primarily a teacher and principal of a local school. Despite being a weak and often sickly child, Yan Song showed great literary talent. His father spared no effort in educating him in Confucian teachings. In 1495, at the age of 15, Yan Song applied for the provincial civil service examination, but his father had just died, and he could not take the exam because of mourning. He eventually passed the provincial examination in 1498, ranking sixteenth, which was a decent performance. It was not until 1505 that he succeeded in the metropolitan examination as number 38. He ranked fifth in the palace examination that followed, which was a great success, although he had hoped for an even better result.

Biographer Wang Shizhen states that during the examination and final banquet in 1498, Yan Song left a negative impression on the examiner due to his gaunt appearance and poorly dressed attire. This negative perception continued to haunt him for years. He often reminisced about the challenging times of his youth, particularly after his mother's death in 1509, when he lacked the means to give her a dignified funeral. In 1499, he married Lady Ouyang, and their daughter was born the same year. In 1513, their son Yan Shifan () was born.

In 1505, Yan was appointed as a bachelor (Shujishi) at the Hanlin Academy. Around 1508, he requested a leave of absence due to illness and returned to his hometown of Fenyi. He spent eight years there, avoiding the factional conflicts and purges that occurred during the eunuch Liu Jin's dominance (1506–1510) at the imperial court. It was not until 1516 that Yan fully recovered and even then, he rarely returned to work. Upon his return to Beijing, he was reassigned to the Hanlin Academy as a junior compiler. In addition to his duties at the academy, he was given various short-term assignments, such as training imperial eunuchs in 1517, serving on the examination board for the metropolitan and palace examinations, and being part of a delegation sent to Guangxi Province in 1518 to oversee the accession of a new Ming prince. He refrained from participating in protests against the emperors, including those against the Zhengde Emperor's trips to the northern borderlands and south in 1517–1519, as well as discussions about the order of accession for the new Jiajing Emperor in 1521 and the Great Rites Controversy in 1524. As a politician, he avoided getting involved in factional disputes and did not hold strong opinions on political matters. This made him open to supporting any applicants who offered suitable gifts when he rose to higher positions.

Yan was later transferred to the Hanlin Academy in Nanjing and in 1525, he returned to Beijing to take over the administration of the state-run Imperial University. After three years, he was appointed vice minister of rites and given the honorable task of traveling to the tomb of the Emperor's father in Anlu, Huguang Province, to announce his new temple name to his spirit.

Minister of Rites From 1531 to 1536, Yan served as the minister of rites in Nanjing. In 1536, he was promoted to minister of rites in Beijing, where he served alongside Xia Yan. Xia was appointed grand secretary that same year. Following Xia's departure from the position, Yan Song became the sole minister of rites in January 1537. Yan held this position until May 1543, when he was appointed grand secretary. The Ministry of Rites was responsible for various duties, including overseeing rituals and ceremonies, managing foreign relations, overseeing state Confucian schools and civil service examinations, and handling matters related to members of the imperial family living in different regions.

During the 1530s, as he rose in office, Yan's financial situation significantly improved. Between 1537 and 1539, he had a new residence built in Beijing, immediately south of the Forbidden City. His son, Yan Shifan, oversaw the construction and subsequently managed the household. In 1540, Yan Shifan also oversaw the construction of a new extensive family residence in his native region, Yuanzhou Prefecture, which was located 40 kilometers away from his hometown of Fenyi. As Yan Song's power and influence grew, he gradually handed over the responsibility of accepting applicants for help and various benefits in exchange for a reasonable "gift" to his son. This allowed Yan Song to keep his hands clean and focus on fulfilling the wishes of the ruler as a reliable, efficient, and always loyal minister.

As the minister of rites, Yan played a crucial role in the ceremonial reforms of the late 1530s. This included the change of the temple name of the Yongle Emperor (), the third emperor of the dynasty. In 1536, Yan was instrumental in persuading the Jiajing Emperor to officially declare his newborn son, Zhu Zairui, as the heir. The Emperor named his son as his heir in 1539. Later that year, the Emperor's mother died. After discussions between the Emperor and the government, it was decided that she would be buried in Anlu, in the tomb of her husband. The Emperor personally inspected his father's tomb and Yan played a significant role in organizing the journey. The journey was accompanied by over a thousand officials and servants, as well as six thousand soldiers. It took place in March–May 1539. In June of the same year, a funeral procession with the remains of the Emperor's mother set off for Anlu.

Foreign policy

The major foreign policy concern during the late 1530s and early 1540s was the situation in Đại Việt (present-day in northern Vietnam). After the Emperor's son was born in November 1536, the Ming government sent envoys to neighboring countries to announce the prince's birth. Grand Secretary Xia Yan refused to include Đại Việt in these diplomatic efforts. He argued that Đại Việt had not paid tribute for twenty years and that the current ruler, Mạc Thái Tông, was not a legitimate leader. The Minister of War and the militarist faction in the government, led by Guo Xun, Marquis of Wuting, responded by proposing a punitive expedition. This proposal was met with criticism for being extravagant and costly. In March 1537, envoys from Mạc Thái Tông's rival Lê Trang Tông arrived in Beijing, seeking assistance against Mạc. The Jiajing Emperor then tasked the Ministries of Rites and War with investigating the situation. Yan presented the Emperor with a summary of the history of Sino-Viet relations over the past fifteen centuries and the conclusions of consultations between high-ranking officials. They agreed that Mạc Thái Tông was responsible for the civil war, the closure of the border, and the interruption of mutual relations. They recommended military action against him, and the Jiajing Emperor agreed. However, local authorities in Guangdong protested against the invasion of Đại Việt. They argued that the Viets were not violating the border and that the outcome of their civil war was unclear. These protests from regional officials caused the Emperor to hesitate, and in June, he canceled military preparations. In September 1537, influenced by new proposals from the regions, he resumed preparations for war.