Yamashiro Province
After the death of Toyotomi Hideyoshi and the defeat of the Western Army at the Battle of Sekigahara in 1600, the momentum of the Toyotomi family weakened. Tsuchimikado Hisanaga was then granted the right by Tokugawa Ieyasu to a total of 177 koku and 6 , covering the villages of Kaide, Otokuni County, Yamashiro Province (present-day Kaide, Mukō City, Kyoto Prefecture); Terado, Otokuni County (present-day Terado, Mukō City); Umekōji, Kadono County, Yamashiro Province (present-day Umekōji, Shimogyō Ward, Kyoto City, Kyoto Prefecture); Saiin, Kadono County (present-day Saiin, Ukyō Ward, Kyoto City); and Kisshōin, Kii County, Yamashiro Province (present-day Kisshōin, Minami Ward, Kyoto City), and he returned to the Imperial court. When the Tokugawa shogunate was established by Tokugawa Ieyasu in 1603, the Tsuchimikado family was officially recognized by the shogunate as the , and was in charge of geomorphology in the construction and layout of facilities for the development of the Edo area. Later, onmyōdō was also used in the construction of Nikkō Tōshō-gū Shrine. The shogunate also began to control the activities of private onmyōji, which were flourishing in various parts of Japan at the time, with the aim of controlling folk religion to prevent the spread of rumors. The shogunate tried to use two onmyōji families from the Heian period (the Kamo and Abe family) to give authority to its measures. In addition to the Tsuchimikado family, which survived as a descendant of the Abe family, the shogunate planned to reestablish the , which was a descendant of the Kamo family and a branch of the defunct Kadenokōji family, and to have the two families control the private onmyōji in various regions.