The Kyogoku clan, having been transferred to the Toyooka domain after three generations, was in 1668 replaced by the Makino clan with 35,000 koku; the clan rebuilt the main gate, other gates and stone walls of Tanabe-jo Castle, and as part of its heritage continued the engineering work and prosperity for generations till the Meiji period.
京極氏は3代続いた後、豊岡藩へ転封となり、代わって牧野氏が1668年（寛文8年）3万5千石で入封すると、田辺城の大手門その他の城門・石垣などが改築され、それを代々世襲し明治の時代まで繁栄した。