At the end of the 14th century, the Muromachi Shogunate reached the apogee of its power, and this is reflected in buildings such as the villa of Shogun Ashikaga Yoshimitsu, which later became the Buddhist temple Rokuon-ji. The villa of a later shogun, Ashikaga Yoshimasa, built in a more refined style in the mid-15th century, was also converted into a temple, Jisho-ji. Garden design was refined into pure art, as demonstrated by the garden of the abbot's residence at Ryoan-ji. Much of Kyoto was destroyed in the Onin War (1467-77), but it was rebuilt by a new urban merchant class, who replaced the aristocrats who had fled during the war. In 1568 Oda Nobunaga seized power, and he was followed by Toyotomi Hideyoshi, who unified the country and built a 23 km wall round Kyoto. The centre of power moved to Edo (present-day Tokyo) when a new shogunate was established under Tokugawa Ieyasu. The authority of the Tokugawa Shogunate was given material form in Kyoto with the construction of the strong castle of Ngo-jo at the heart of the city. At the same time Hideyoshi's defences were dismantled.