In 1600, when Tadaoki HOSOKAWA was transferred to Kyushu after the battle of Sekigahara, Takatomo KYOGOKU entered Tanabe Castle (in Tango Province) from Iida Castle in Shinano Province (Miyazu was the official residential castle that reported to the Bakufu), and controlled the country of Tango (the Tango han domain).
慶長5年（1600年）、関ヶ原の戦い後に細川忠興が九州へ移されると、丹後国には信濃国飯田城より、京極高知が田辺城(丹後国)に入り（幕府に届出た正式な居城は宮津城）、丹後一国を領した（丹後藩）。