After the death of Hideyoshi, he became close to Ieyasu TOKUGAWA, and in 1600 proved his fierce mettle on the front lines of battle by fighting against Hidenobu ODA's defense of Gifu-jo Castle, and taking part in Yoshitsugu OTANI's fight to the death in the Battle of Sekigahara, finally receiving, after the battle, 123,000 goku in Miyazu domain, Tango Province as a daimyo and taking the name Kyogoku Tango no kami (the governor of Tango Province).
秀吉の死後は徳川家康に接近し、慶長5年（1600年（には織田秀信が守る岐阜城攻めに参戦、関ケ原の戦いでも大谷吉継隊と死闘を演じる等、最前線で抜群の戦功を挙げ、戦後、丹後国宮津藩12万3千石を与えられて国主として京極丹後守と称すことを許された。