Eight Trigrams uprising of 1813

The Eight Trigrams uprising of 1813 (Chinese: 癸酉之變) broke out in China under the Qing dynasty. The rebellion was started by some elements of the millenarian Tianli Sect (天理教) or Heavenly Principle Sect, which was a branch of the White Lotus Sect. Led by Lin Qing (林清; 1770–1813) and Li Wencheng, the revolt occurred in the Zhili, Shandong, and Henan provinces of China.

In 1812, the leaders of the Eight Trigram Sect (Bagua jiao) also known as the Sect of Heavenly Order (Tianli jiao) announced that leader Li Wencheng was a 'true lord of the Ming' and declared 1813 as the year for rebellion, while Lin Qing declared himself the reincarnation of Maitreya, the prophesied future Buddha in Buddhism, using banners with the inscription "Entrusted by Heaven to Prepare the Way", a reference to the popular novel Water Margin. They considered him sent by the Eternal Unborn Mother of esoteric Chinese religions, to remove the Qing dynasty whom they regarded as having lost the Mandate of Heaven to rule.

The third leader was Feng Keshan, who was called the "King of Earth", Li titled the "King of Men", and Lin referred to as "King of Heaven".

The group won support from several powerful Eunuchs in the Forbidden City. On 15 September 1813, the group attacked the imperial palace in Beijing. The rebels made it into the city.

The rebellion is seen as being similar to the previous White Lotus Rebellion, with the former being of religious intent and the latter leaders of the Eight Trigram appearing more interested in personal power by overthrowing the Qing dynasty.