Xia Yan (1482 – 31 October 1548) was a Chinese scholar-official during the Ming dynasty. He held a high position in the court of the Jiajing Emperor in the mid-16th century, serving as minister of rites from 1531 to 1537 and later as grand secretary. He also intermittently served as head of the Grand Secretariat from 1538 to 1548.

Xia was born in Guixi County in the southern Chinese province of Jiangxi and passed the highest level of civil service examinations, known as the palace examination, in 1517. This marked the beginning of his civil service career. He started as an supervising secretary in the Office of Scrutiny of the Ministry of War and later in the Office of Scrutiny of the Ministry of Personnel. He was known for his meticulousness, consistency, energy, and fearlessness in politics. In 1530, his proposals for ceremonial reforms caught the attention and favor of the Jiajing Emperor, leading to his promotion to the ministry of rites and later to the position of grand secretary. As minister and grand secretary, he pursued a decisive and aggressive foreign policy, but played a less prominent role in domestic politics. While he initially enjoyed the Emperor's favor, he gradually lost it due to his disagreement with the Emperor's excessive focus on Taoist ceremonies. He also refused to adapt to the Emperor's changing positions on political matters, which further strained their relationship. In 1548, he definitively lost the Emperor's support and was removed from office, arrested, and executed due to disagreements over the defense of the northwest border.

Youth and early career Xia Yan was born in 1482 during China's Ming dynasty in Guixi, present-day county-level city in Yingtan, Jiangxi Province. His family was originally registered as a military household, but his father successfully passed all levels of the civil service examinations. In 1496, he passed the highest level—the palace examination—and was awarded the title of jinshi. He then worked as an official in Beijing, where Xia Yan grew up. Xia Yan studied Confucianism and also applied for the civil service examinations. He gradually passed the lower levels and in 1517, he passed the palace examination and received the title of jinshi.

In 1520, Xia began working in Beijing as the supervising secretary in the Office of Scrutiny of the Ministry of War. After the Jiajing Emperor ascended to the throne in 1521, he played a role in the purge of officials accused of corruption and excesses during the previous reign of the deceased Zhengde Emperor (). He specifically targeted Minister of Personnel Wang Qiong, whom he accused of accepting bribes from the Prince of Ning (who had risen in 1519 and occupied part of Jiangxi Province; the uprising was quickly suppressed by Wang Yangming, then the grand coordinator in southern Jiangxi), of allying with eunuchs close to the Zhengde Emperor, and of suppressing criticism of honorable dignitaries. He also made similar accusations against Minister of War Wang Xian. However, these accusations were false; in reality, Wang Qiong had actually supported Wang Yangming and indirectly contributed to the defeat of the Prince of Ning. Wang Qiong was opposed by Grand Secretary Yang Tinghe, the most influential figure in the government during the early 1520s. Yang was able to get the young Jiajing Emperor to dismiss both Wang Qiong and Wang Xian. As part of the widespread purges of civil and military offices, Xia was tasked with vetting officers, with a focus on relatives and supporters of the Zhengde Emperor's close eunuchs and favorites. With his usual meticulousness and consistency, he compiled a list of 3,199 individuals whom he proposed to strip of their offices and ranks, but only a portion of them were actually dismissed, which Xia protested against three years later. In an attempt to avoid a large-scale purge, the Emperor responded by ordering a further investigation of the files of those involved, effectively putting the matter on hold. Xia reacted strongly, stating, "We are shocked at this directive and we don't know what to do... The security of the state is involved here". He immediately protested against the appointment of unsuitable individuals as officers, such as the younger brothers of the Jiajing Emperor's nurses to the Embroidered Uniform Guard, stating that he was "shocked" by the repetition of negative practices from the Zhengde Emperor's regime.

In addition to the military purge, Xia was also involved in land reform in and around Beijing and North Zhili. Due to the poor fertility of the land and the difficult farming conditions in the floodplains, small farmers were initially exempt from taxes in the early Ming dynasty. However, as time passed, they gradually lost their land to the Emperor's favorites, influential eunuchs, aristocrats, and officials who were interested in it for tax benefits. After the death of the Zhengde Emperor, Yang Tinghe and his political allies confiscated approximately one-tenth of the 1.4 million hectares of such land from the late emperor's favorites. This land was then returned to the small farmers as part of corrective reforms and campaigns against the Zhengde Emperor's favorites. Xia believed that the scope of these confiscations was insufficient and protested, but the government did not consistently respond to his concerns when affected eunuchs and aristocrats, with the Emperor's support, were able to reclaim their confiscated property.

In June 1524, Xia's mother died, causing him to resign for the obligatory year's mourning and return home to Guixi. Due to the intense political disputes between the Emperor and the government, he did not immediately return to his civil service duties. It was not until late spring of 1528 that he finally arrived in Beijing and resumed his previous position as supervising secretary in the Office of Scrutiny of the Ministry of War. Towards the end of the year, he was tasked with evaluating the performances of those involved and resolving the aftermath of the unrest in Shanxi Province. Specifically, in Lingchuan County in the southeast of Shanxi, a group of bandits led by members of the Chen family had been causing havoc since the early 1520s. This group, consisting of several dozen to hundreds of armed men, had been terrorizing several counties on the border of Shanxi and Hebei. Despite multiple attempts by local authorities to defeat the bandits, they were unsuccessful. Even negotiations with the bandits proved futile. It was not until the autumn of 1528, after months of preparation, that a coordinated attack from four directions finally succeeded in dispersing the bandits and freeing the captured civilians (the bandits had kidnapped 2,300 people in order to use them for labor and to replenish their ranks before the final attack). Xia then evaluated all the officials and officers involved in the elimination of the bandits, and did not hesitate to criticize the failure to distinguish between hardened bandits and peasants who were forced to collaborate with them. He also condemned the commanders who delayed intervention in hopes of a worsening situation, more casualties, and a higher enemy death toll to report. During his several-month journey to the region, he organized the return of the captives to their homes and provided aid to the affected population. He also developed a detailed plan for the administrative reorganization of the area, which included establishing a new county in a remote mountain valley where the bandits had settled, elevating a large subprefecture to a full prefecture, and allocating a sufficient police force. In the new county, he planned the size and distribution of police patrols, fortification of the crossings into Henan Province, and reconstruction of roads. The plan also required capable officials to be appointed to the county and prefecture offices. After consulting with the ministries, the Emperor approved Xia's proposals.

After returning to Beijing, Xia was promoted to chief supervising secretary in the Office of Scrutiny of the Ministry of Personnel in 1529. In an attempt to gain high office and attract the attention of the Jiajing Emperor, he decided to take advantage of the Emperor's interest in rituals and ceremonies; he drafted a project to reform the ceremonies of offerings to Heaven and Earth, which were performed annually by the Emperor, and submitted it to him in February 1530. The Emperor welcomed the proposal and sought consultation on it. Hu Tao, one of the Emperor's supporters, who had opposed similar reforms in the early 1520s, continued to oppose the proposal even after the Emperor asked him to reconsider. The Emperor had him arrested, but he was released a month later after he withdrew his opposition. With the support of the majority, the proposal was eventually implemented, resulting in the separation of the offerings to Heaven and Earth in the ceremonies.

Minister of Rites In 1531, the Jiajing Emperor appointed Xia as the minister of rites. As minister of rites, he was responsible for organizing imperial rituals and ceremonies, foreign relations, state Confucian schools, and civil service examinations, as well as managing the affairs of the imperial family. He held this position until January 1537. Senior Grand Secretary Zhang Cong saw Xia as a rival for the Emperor's favor and attempted to discredit him. Despite Zhang's efforts, Xia maintained his position and the support of the Emperor.

Xia was involved in foreign relations even before his appointment as minister. In 1523, he had drafted a comprehensive memorandum on relations with Japan. That year, a Japanese delegation arrived in the port city of Ningbo in Zhejiang Province with tribute. However, representatives of the Japanese Ōuchi and Hosokawa clans got into a dispute in the city, resulting in armed clashes and the destruction of the city. The Ming authorities arrested Song Suqing, a Chinese man who had relocated to Japan and was serving as a merchant and envoy for the Hosokawa clan, and several of his associates. The Ouchi leader, Kendō Sōsetsu, plundered and pillaged Hangzhou, the capital of Zhejiang, with a hundred of his men before returning to Japan. The provincial authorities were unable to intervene effectively. In the memorandum, Xia gave an overview of Sino-Japanese relations and demanded punishment for incompetent officials and Japanese intruders. He also proposed impaling the heads of Chinese collaborators with the Japanese, such as Song Suqing, on stakes outside the city gates.