Shirakawa-go was part of the territory of the Takayama Clan at the beginning of the Edo period, but from the late 17th century until the Meiji Restoration of 1868 it was under the direct control of the Edo Bakufu (military government). Gokayama was under direct rule by the Kanazawa Clan throughout the Edo period.