Zhang Xuecheng (Chinese: 章學誠; Wade–Giles: Chang Hsüeh-ch'eng; 1738–1801) was a Qing dynasty historian, writer and philosopher. His father and his grandfather had been government officials, but, although Zhang achieved the highest civil service examination degree in 1778, he never held high office. Zhang's ideas about the historical process were revolutionary in many ways and he became one of the most enlightened historical theorists of the Qing dynasty, but he spent much of his life in near poverty without the support of a patron and, in 1801, he died, poor and with few friends. It was not until the late 19th century that Chinese scholars began to accept the validity of Zhang's ideas.