 In 1398 the Hongwu Emperor died, and was succeeded by his grandson, the Jianwen Emperor.A civil war soon ensued as Zhu Di, son of the Hongwu Emperor and uncle of the Jianwen Emperor, sought to take the crown from his nephew.In 1402, Zhu Di took Nanjing and ascended the throne as the Yongle Emperor.