Throughout history, Guan Yu has also been credited with many military successes. In the 14th century, his spirit was said to have aided Zhu Yuanzhang, the founder of the Ming dynasty, at the Battle of Lake Poyang. In 1402, when Zhu Di launched a coup d'état and successfully deposed his nephew, the Jianwen Emperor, Zhu Di claimed that he was blessed by the spirit of Guan Yu. During the last decade of the 16th century, Guan Yu was also credited with the repulse of Japanese invasion of Korea by Toyotomi Hideyoshi. The Manchu imperial clan of the Qing dynasty was also associated with Guan Yu's martial qualities. During the 20th century, Guan Yu was worshipped by the warlord Yuan Shikai, president and later a short-lived emperor of China.