The Jianwen Emperor ruled from 1398 to 1402.