During the Yuan dynasty it was the capital of Jiangxi Province, an area that included Guangdong as well. At the end of the Yuan (Mongol) period (1279–1368), it became a battleground between Zhu Yuanzhang, the founder of the Ming dynasty (1368–1644), and the rival local warlord, Chen Youliang. At the beginning of the 16th century it was the power base from which Zhu Chenhao, the Prince of Ning, launched a rebellion against the emperor.