At the time of Haihan-chiken (the abolition of feudal domains and the establishment of prefectures) of 1871, it became Yamaga Prefecture, which later became a part of Kyoto Prefecture.
明治4年（1871年）、廃藩置県により山家県となり、京都府に編入された。