Li Zongmin (李宗閔) (died 846?Zizhi Tongjian, vol. 248.Li Zongmin was in exile at Feng Prefecture (封州, in modern Zhaoqing, Guangdong) when Emperor Xuānzong became emperor in 846. When, later that year, Emperor Xuānzong ordered that five chancellors who had previously been exiled by his predecessor and nephew Emperor Wuzong be moved closer to the capital Chang'an, Li Zongmin was made the military advisor to the prefect of Chen Prefecture (郴州, in modern Chenzhou, Hunan), but was said to have died before he could leave Feng Prefecture. It thus appeared that Li Zongmin died in 846, but that is not completely clear.), courtesy name Sunzhi (損之), was a Chinese politician of the Tang dynasty, serving twice as chancellor during the reign of Emperor Wenzong. He was considered one of the leading figures of the Niu-Li Factional Struggles — factional struggles between two factions at the Tang court that lasted decades — as a leader of the so-called Niu Faction, named after his colleague Niu Sengru.

Background It is not known when Li Zongmin was born. His great-great-grandfather was Li Yuanyi () the Prince of Zheng, a son of Tang dynasty's founding emperor Emperor Gaozu. His great-grandfather was Li Jing (), who inherited the Prince of Zheng title from Li Yuanyi. His grandfather Li Chayan () was not listed with any offices while alive but was listed with a posthumous honor, while his fatherLi Zongmin's father's name was not in Unicode — the character can be formed by putting the Chinese characters 曾 and 羽 together, left to right. served as a supervisory official at the imperial government and as a prefectural prefect, and also carried the title of Duke of Chenliu. Li Zongmin's cousin Li Yijian served as a chancellor during the reign of Emperor Xianzong.New Book of Tang, vol. 174.New Book of Tang, vol. 70 Li Zongmin himself passed the imperial examinations in the Jinshi class in 805, during the reign of Emperor Xianzong's grandfather Emperor Dezong, in the same year as eventual colleague and ally Niu Sengru.Old Book of Tang, vol. 176.

During Emperor Xianzong's reign In 808,Li Zongmin's biography in the Old Book of Tang indicated that this event was in 807, but it appears to be a misdating. at special imperial examinations where Emperor Xianzong ordered that low-level officials submit honest opinions about the government, several of the examinees — Li Zongmin, Niu Sengru, and Huangfu Shi () stated, without using any veiled language, the issues they saw with the governance at the time. The officials that Emperor Xianzong put in charge of the examinations, Yang Yuling () and Wei Guanzhi ranked them high. However, the chancellor Li Jifu saw these as severe criticisms of himself, and, weeping, accused the reviewing officials, the imperial scholars Pei Ji and Wang Ya, of conflict of interest — as Huangfu was a nephew of Wang's. As a result of Li Jifu's accusations, Wang, Pei, Yang, and Wei were all demoted, and it was said that while no harm came to Li Zongmin, Niu, and Huangfu at that time, they were effectively stuck at the positions they previously served without promotion,Zizhi Tongjian, vol. 237. — and it appeared that soon after the examination, Li Zongmin was made the sheriff of Luoyang County, one of the two counties making up the eastern capital Luoyang. As a result, they all sought positions as staff members of military governors.

It was only after Li Jifu's death in 814Li Zongmin's biography in the Old Book of Tang placed Li Jifu's death in 812, but that was erroneous as Li Jifu did not die until 814. See Zizhi Tongjian, vol. 239. that Li Zongmin began his service at the central government, as Jiancha Yushi (), a low-level imperial censor, and he was thereafter promoted to be Lǐbu Yuanwailang (), a low-level official at the ministry of rites (禮部, Lǐbu). In 817, when the chancellor Pei Du went to the frontline to oversee the imperial campaign against the warlord Wu Yuanji and, as part of his responsibilities, was made the military governor (Jiedushi) of Zhangyi Circuit (彰義, headquartered in modern Zhumadian, Henan), which Wu then held, he had a large number of imperial officials serve on his staff, and he had Li Jifu serve as his secretary in his capacity as military governor; it was said that it was because of Li Zongmin's service under Pei that he later began to receive prominence.Zizhi Tongjian, vol. 244. After the end of the campaign, Li Zongmin was made Jiabu Langzhong (), a supervisory official at the ministry of rites, and was also put in charge of drafting edicts.

During Emperor Muzong's reign After Emperor Xianzong died in 820Zizhi Tongjian, vol. 241. and was succeeded by his son Emperor Muzong, Li Zongmin was promoted to be Zhongshu Sheren (), a mid-level official at the legislative bureau of government (中書省, Zhongshu Sheng). Meanwhile, at that time his father was also moved from being the ministry of imperial clan affairs () to be the prefect of Hua Prefecture (華州, in modern Weinan, Shaanxi), and their simultaneous commissions were considered to be an honor.

However, in 821, Li Zongmin would be involved in the incident that was said to precipitate the Niu-Li Factional Struggles. At that time, Li Jifu's son Li Deyu was an imperial scholar and was still resentful of Li Zongmin's criticism against his father, and both Li Deyu and Yuan Zhen, who was a Zhongshu Sheren colleague of Li Zongmin's, were both struggling with Li Zongmin for power. Meanwhile, Li Zongmin's junior colleague at the legislative bureau, Yang Rushi () and the deputy minister of rites (禮部侍郎, Lǐbu Shilang) Qian Hui () were in charge of overseeing the imperial examinations. The military governor Duan Wenchang (a former chancellor) and the imperial scholar Li Shen both made secret pleas to Qian for certain examinees. However, when the results were announced, the examinees that Duan and Li Shen recommended were not given passing results, while among those passing the examinations were Zheng Lang, the brother of the examination bureau (門下省, Menxia Sheng) official Zheng Tan; Pei Zhuan () the son of the military governor Pei Du (also a former chancellor); Li Zongmin's son-in-law Su Chao (); and Yang Rushi's brother Yang Yinshi (). This thus brought a popular uproar, and Duan submitted a report accusing Yang Rushi and Qian of being unfair. When Emperor Muzong requested opinions from the imperial scholars, Li Deyu, Yuan, and Li Shen all agreed with Duan's opinion. Emperor Muzong thus ordered Li Zongmin's colleague Wang Qi () to conduct a re-examination, while demoting Qian, Li Zongmin, and Yang Rushi to be prefectural prefects and deposing 10 of the examinees selected by Qian and Yang Rushi. In Li Zongmin's case, he was demoted to be the prefect of Jian Prefecture (劍州, in modern Guangyuan, Sichuan).

However, Li Zongmin would not remain at Jian Prefecture for a long time, as he was recalled in or before 823 to be Zhongshu Sheren again. In winter 823, he was made acting deputy minister of civil service affairs (吏部侍郎, Lìbu Shilang, note different tone than the ministry of rites), and was apparently responsible for the imperial examinations the following year, for following the imperial examinations in 824, he was made acting deputy minister of defense (兵部侍郎, Bingbu Shilang).

During Emperor Jingzong's reign In 825, by which time Emperor Muzong's son Emperor Jingzong was emperor, Li Zongmin was made full deputy minister of defense. Sometime thereafter, though, his father died, and he left government service to observe a mourning period for his father.

During Emperor Wenzong's reign In 828, by which time Emperor Jingzong's younger brother Emperor Wenzong was emperor, Li Zongmin was recalled to the imperial government to serve as deputy minister of civil service affairs.

In 829, Pei Du recommended Li Deyu, who was then the military governor of Zhenhai Circuit (鎮海, headquartered in modern Zhenjiang, Jiangsu) as chancellor, and Li Deyu was recalled from Zhenghai. However, it was said that because Li Zongmin was favored by powerful eunuchs, due to his association with Shen Yi, the husband of Emperor Xianzong's daughter Princess Xuancheng,New Book of Tang, vol. 83. and, through Shen, the female palace scholar Song Ruoxian () and the powerful eunuch Yang Chenghe () the director of palace communications,Zizhi Tongjian, vol. 245. Li Zongmin was made the deputy head of the legislative bureau (中書侍郎, Zhongshu Shilang) and chancellor de facto with the designation Tong Zhongshu Menxia Pingzhangshi (). Soon thereafter, Li Zongmin had Li Deyu, whom he viewed as a threat, sent out of the capital Chang'an to serve as the military governor of Yicheng Circuit (義成, headquartered in modern Anyang, Henan). He also recommended Niu Sengru, who was then the military governor of Wuchang Circuit (武昌, headquartered in modern Wuhan, Hubei), and Niu was recalled to Chang'an to also serve as chancellor. It was said that the two of them worked together and began to eject Li Deyu's allies from the imperial government. In particular, because Li Deyu became resentful of Pei for having recommended Li Deyu, in late 830, because Pei had said that he was ill, Li Zongmin used the illness as reason to have Pei sent to Shannan East Circuit (山南東道, headquartered in modern Xiangfan, Hubei to be its military governor.

In 832, Li Deyu, after a well-regarded stint as the military governor of Xichuan Circuit (西川, headquartered in modern Chengdu, Sichuan), was recalled to Chang'an, to serve as the minister of defense, and it was believed that because Emperor Wenzong was impressed by his service at Xichuan, Li Deyu would soon be chancellor. Li Zongmin, without Niu as an ally at Chang'an at this point (as Niu had resigned his chancellorship earlier in the year), was apprehensive of this development, and he consulted his associate, Du Cong the mayor of Jingzhao (京兆, i.e., the Chang'an region) as to what he should do. Du suggested a truce with Li Deyu — pointing out that while Li Deyu, whose career as an official was launched by his status as Li Jifu's son rather than through imperial examinations, was deeply jealous of the officials who had gone through imperial examinations, and that Li Zongmin could effectuate a truce by recommending Li Deyu to be responsible for the imperial examinations. Li Zongmin did not want to do this, however, and under an alternative proposed by Du, offered to recommend Li Deyu as chief imperial censor. Du visited Li Deyu to inform him of this, and Li Deyu was grateful. However, after Li Zongmin consulted another associate, the imperial attendant Yang Yuqing (), Yang opposed this idea, and Li Zongmin did not actually recommend Li Deyu.

In 833, Emperor Wenzong made Li Deyu a chancellor. When Li Deyu met with Emperor Wenzong to thank him, Emperor Wenzong asked him what the most pressing issue at the imperial government that he saw was, and Li Deyu indicated that it was partisanship — knowing that at that time, Emperor Wenzong was already displeased with Yang Yuqing, whom Emperor Wenzong saw as participating in aggressive partisanship with his cousin Yang Rushi () (then a Zhongshu Sheren), brother Yang Hangong () (a supervisory official at the ministry of census (戶部, Hubu), and other associates Zhang Yuanfu () (a Zhongshu Sheren) and Xiao Huan () (also an imperial attendant). Li Deyu further used this to accuse others of being associated with Yang Yuqing in order to eject people he disfavored from the imperial government. Later in the year, after Emperor Wenzong, without consulting with Li Zongmin at all, made Zheng Tan the chief imperial censor, Li Zongmin was distressed. Soon thereafter, Li Zongmin was sent out of Chang'an to serve as the military governor of Shannan West Circuit (山南西道, headquartered in modern Hanzhong, Shaanxi) as well as the mayor of its capital Xingyuan Municipality (), although he retained the Tong Zhongshu Menxia Pingzhangshi designation as an honorary title.