Toyotomi Hideyoshi, ruler of Japan's Azuchi-Momoyama age, born in Owari in 1537 of poor stock, first a sandal-bearer of Oda Nobunaga, rising by talent to army command. When Nobunaga fell at the Honnoji Incident in 1582, Hideyoshi turned his army at once, destroyed Akechi Mitsuhide, then overpowered Shibata Katsuie and the other contenders, becoming kanpaku (imperial regent) in 1585 and master of the realm's government; in 1590 he destroyed the Hojo, the daimyo submitting one by one — the age of warring states was over. In government he carried out the Taiko land surveys, measuring every field and unifying the tax base, issued the Sword Hunt of 1588 to disarm the countryside, and separated soldier from farmer, fixing the kokudaka system of rice-based levies. To absorb his surplus soldiery and seek profit abroad he invaded Joseon Korea twice, in 1592 and 1597 — the Bunroku and Keicho campaigns: his armies took Seoul and Pyongyang at first, then fell back to the southern coast under Ming-Korean counterattack, the war dragging for years without gain. He died at Fushimi in 1598, his heir Hideyori a child, real power passing to Tokugawa Ieyasu, who founded the Edo shogunate.