As some of you here may already know, the northern half of Vietnam was under Chinese dominion from roughly 111 BC to 939 AD, with two notable interruptions and also occasional Chinese invasions of the Champa Kingdom in southern Vietnam. The Vietnamese won their independence after defeating the Southern Han forces at the Battle of Bach Dang in 938 AD, allowing for the establishment of the Ngô Dynasty and the Kingdom of Dai Viet. The Vietnamese Ly Dynasty and Chinese Song Dynasty fought a brief war in the 11th century AD and Vietnam was threatened by the Mongol Empire (styled in the east as the Yuan Dynasty) once they conquered the Southern Song Dynasty of China in 1279 AD. However, things were fairly peaceful from then until the 15th century AD, when the Chinese felt the need to reassert their authority in the region.
In 1407 AD the short-lived Hồ dynasty of northern Vietnam was toppled by the Ming Dynasty of China, then led by the Yongle Emperor, the same ruler who financed the famous Treasure Fleet voyages of Admiral Zheng He into the Indian Ocean and all the way to East Africa. The Ming Chinese attempted to establish traditional Chinese bureaucratic rule over northern Vietnam. Revolts occurred almost right away and were initially crushed, but Chinese rule only lasted until 1427 when the Lam Sơn uprising, led by Lê Lợi, managed to oust the remaining Ming Chinese forces. Lê Lợi then went on to establish the Later Lê dynasty, which would last until 1789 and manage to subjugate Champa as a vassal state.
The loss of northern Vietnam for the fourth time in Chinese history cannot exactly be blamed on the death of Ming China's Yongle Emperor in 1424, since the uprising of Lê Lợi began in 1418. Ming Chinese rule was already deteriorating merely a decade after the Ming conquest. How did it happen? Or rather, how did the Ming Chinese allow it to happen, whereas they had earlier managed to successfully rule the country for centuries on end? I can't really seem to find good, detailed sources for this rebellion, but I suppose it goes without saying that the Vietnamese have a reputation for guerrilla tactics and legacy of being skilled insurgents going into modern times. Were there logistical concerns that the Ming Chinese weren't meeting and if so why? Was the imperial court in Beijing simply apathetic about maintaining their new southern province? Or were the Vietnamese simply that good at kicking their asses?