They later rebuilt it to bolster their own prestige, only to burn it down once again in a fit of pique when the Meiji Restoration of imperial power abolished their shogunate in 1868.
They burned down their own building because they were not happy with the Meiji.