Chang participated in major battles against Zhu Yuanzhang's rivals, Chen Youliang and Zhang Shicheng, helped Zhu eliminate them and secure his rule over China and laid the foundation for the Ming dynasty. He was granted the title "Duke of E" (鄂國公) by Zhu in 1366. In 1367, Chang followed Xu Da on a military campaign north and conquered the Yuan capital, Khanbaliq, in the following year, thereby ending Mongol rule in China.