abandoned when the Korean navy under Admiral Yi Sun-sin defeated the Japanese fleet under Todo Takatora in the Battle of Myeongnyang with only 13 ships. The battle effectively ended the war, and in 1598 the Japanese at last withdrew from Korea after the sudden death of Toyotomi Hideyoshi. The Battle of Noryang marked the end of the war, with the last Japanese units under Konishi Yukinaga leaving Korea. Later days (1598–1608) Despite all the efforts put in by Seonjo during the war, such as establishing army training facilities and reforming taxation laws – people were awarded with increase of social class, exemption of labor or crimes in return for payment of tax in rice – the war left a devastated land and starving people. After the war, his wish of reconstructing the nation was impeded by the political turmoil caused by quarrelling political factions and famine. King Seonjo lost hope in governing the nation, and let his Crown Prince Gwanghaegun rule in his place. However, when the queen gave birth to a son (Gwanghaegun was the second son of Lady Kim, the king's concubine), the succession also became a matter of contention. King Seonjo died in 1608, while political division and outside threats still darkened the skies over Korea. Family Grandfather King Jungjong of Joseon (16 April 1488 – 29 November 1544) (조선 중종) Grandmother Royal Noble Consort Chang of the Ansan Ahn clan (2 September 1499 – 7 November 1549) (창빈 안씨) Father Biological: Yi Cho, Grand Internal Prince Deokheung (2 April 1530 – 14 June 1559) (이초 덕흥대원군) Adoptive: King Myeongjong (명종대왕) (3 July 1532 – 2 August 1567) Mother Biological: Grand Internal Princess Consort Hadong of the Hadong Jeong clan (23 September 1522 – 24 June 1567) (하동부대부인 정씨) Maternal Grandfather: Jeong Se-Ho (1486–1563) (정세호, 鄭世虎) Maternal Grandmother: Lady Yi of the Gwangju Yi clan (광주 이씨) Adoptive: Queen Insun of the Cheongsong Sim clan (인순왕후 심씨) (7 June 1532 – 12 February 1575) Consorts and their Respective Issue(s): Queen Uiin of the Bannam Park clan (5 May 1555 – 5 August 1600) (의인왕후 박씨) — No issue. Queen Inmok of the Yeonan Kim clan (15 December 1584 – 13 August 1632) (인목왕후 김씨) Princess Jeongmyeong (27 June 1603 – 8 September 1685) (정명공주), Eleventh daughter Fourteenth daughter (1604–1604) Yi Ui, Grand Prince Yeongchang (12 April 1606 – 19 March 1614) (이의 영창대군), Thirteenth son Royal Noble