Neo-Confucianism (, often shortened to lǐxué 理學, literally "School of Principle") is a moral, ethical, and metaphysical Chinese philosophy influenced by Confucianism, which originated with Han Yu (768–824) and Li Ao (772–841) in the Tang dynasty, and became prominent during the Song and Ming dynasties under the formulations of Zhu Xi (1130–1200). After the Mongol conquest of China in the thirteenth century, Chinese scholars and officials restored and preserved neo-Confucianism as a way to safeguard the cultural heritage of China.
Neo-Confucianism could have been an attempt to create a more rationalist and secular form of Confucianism by rejecting superstitious and mystical elements of Taoism and Buddhism that had influenced Confucianism during and after the Han dynasty. Although the neo-Confucianists were critical of Taoism and Buddhism, the two did have an influence on the philosophy, and the neo-Confucianists borrowed terms and concepts. However, unlike the Buddhists and Taoists, who saw metaphysics as a catalyst for spiritual development, religious enlightenment, and immortality, the neo-Confucianists used metaphysics as a guide for developing a rationalist ethical philosophy. Traditional Confucian beliefs such as gender roles were also included, leading to the devaluing of women in Korea.
Neo-Confucianism has its origins in the Tang dynasty; the Confucianist scholars Han Yu and Li Ao are seen as forebears of the neo-Confucianists of the Song dynasty. The Song dynasty philosopher Zhou Dunyi (1017–1073) is seen as the first true "pioneer" of neo-Confucianism, using Taoist metaphysics as a framework for his ethical philosophy. Neo-Confucianism was both a revival of classical Confucianism updated to align with the social values of the Song dynasty and a reaction to the challenges of Buddhist and Taoist philosophy and religion which emerged during the Zhou and Han dynasties. Although the neo-Confucianists denounced Buddhist metaphysics, Neo-Confucianism did borrow Taoist and Buddhist terminology and concepts.