The moats and stone walls once enclosed Edo Castle, seat of the Tokugawa shoguns. In 1868 the emperor moved his residence from Kyoto to Tokyo, taking over the shoguns’ former stronghold.