Xue Ju () (died 618), formally Emperor Wu (武皇帝, "Martial"), was the founding emperor of a short-lived state of Qin at the end of the Chinese Sui Dynasty, whose state was eventually destroyed by the Tang Dynasty. He rose against Sui rule in 617 and soon controlled modern eastern Gansu, but while he had some successes against Tang forces, was not able to push toward the Tang capital Chang'an before dying of illness in 618. His son Xue Rengao inherited his throne but was soon defeated and killed by the Tang general Li Shimin, ending the state that Xue Ju established. As hegemonic prince of Western Qin Xue Ju's clan was originally from Hedong Commandery (河東, roughly modern Yuncheng, Shanxi), but his father Xue Wang () moved the family to Jincheng (金城, in modern Lanzhou, Gansu). Xue Ju was said to be brave and strong, and because his family was wealthy, he was able to use the wealth to establish relationships with other people, making himself an influential member of the gentry, eventually becoming a commander of the local militia. In 617, there were many agrarian rebellions in modern eastern Gansu. Hao Yuan (), the county magistrate of Jincheng, thus invited people to join the military, and he gathered several thousand men and gave them to Xue Ju to command. in summer 617, after Hao distributed armor and weapons to the soldiers and set out a feast to send them off, Xue Ju, his oldest son Xue Rengao, and 13 other cohorts took Hao captive and announced that they were rebelling against Sui Dynasty. Xue Ju arrested the local officials and opened the food storages to aid those who were poor. He claimed the title of "Hegemonic Prince of Western Qin" (), perhaps echoing Xiang Yu's title of "Hegemonic Prince of Western Chu." To signify a break with Sui, he also changed the era name from Emperor Yang of Sui's Daye () to Qinxing (). He created Xue Rengao the Duke of Qi and a younger son, Xue Renyue () the Duke of Jin. He also gathered the local agrarian rebels to fall under his command in pillaging the Sui governmental grazing ranches. One of those rebel leaders, Zong Luohou () became a key general for Xue Ju, and Xue Ju created him the Duke of Yixing. Soon, much of the territory in modern eastern Gansu had surrendered to Xue