For 10 points, name this city that was known as Edo before taking its modern name as Japan's capital.
A massive 1657 fire in this city was legendarily begun by a priest attempting to burn a cursed robe. The Akō incident in a namesake castle in this city began a legend involving forty-seven warriors, and the Boshin War culminated in the capture and (*) renaming of this city. The Treaty of Amity and Commerce was signed on a ship in the bay of this city, and the capital of the Showa period was this city. The Tokugawa shogunate was also named after this city, and following the beginning of the Meiji Restoration, the capital was moved from Kyoto to this city. For 10 points, name this city that was known as Edo before taking its modern name as Japan's capital.
A massive 1657 fire in this city was legendarily begun by a priest attempting to burn a cursed robe.
Tokyo (accept Edo before mention)