|Ueda, Nagano Prefecture, Japan|
|Type||hilltop-style Japanese castle|
|Built by||Sanada Masayuki|
|In use||Sengoku - Edo period|
Ueda Castle (上田城 Ueda-jō?) is a Japanese castle located in Ueda, northern Nagano Prefecture, Japan. At the end of the Edo period, Ueda Castle was home to a junior branch of the Matsudaira clan, daimyō of Ueda Domain, but the castle is better known for its association with the Sengoku period Sanada clan. It was also called Amagafuji-jō or Matsuo-jō.
Ueda Castle is located on a hill overlooking a branch of the Chikuma River at the northeast edge of the Nagano plain, which forms part of its southern defences and acts as a moat.
The Central Bailey (Hon-Maru)  originally had seven two-story yagura, but no donjon and was protected by a moat as well as stone ramparts. The Central Bailey is also surrounded by a Second Bailey (Ni-no-Maru) , also with moats and earthen ramparts. The adjacent Third Bailey (San-no-maru) , had additional yagura, of which only the foundation bases remain, and contained the main residence of the daimyō [R] (which was also protected by a moat), gardens [G] and work area [A], and the main gate (Ōtemon) of the castle [H]. Most of the area of the former Third Bailey is now occupied by the Ueda High School.
During the Sengoku period, the area around Ueda was under the control of the Sanada clan, a minor local warlord in the service of the Takeda clan. After the fall of the Takeda clan to the combined forces of Oda Nobunaga and Tokugawa Ieyasu, the Sanada switched side with bewildering rapidity between the Uesugi clan, the Late Hōjō clan, Oda Nobunaga and Toyotomi Hideyoshi in an effort to preserve their territory and independence. Ueda Castle was constructed in 1583 by Sanada Masayuki with the assistance of his then-ally, Tokugawa Ieyasu as a stronghold against Uesugi Kagekatsu; however it came under attack by the Tokugawa in 1585 after Masayuki switched sides again join the Uesugi. The greatly outnumbered Sanada defeated the forces of Tokugawa Ieyasu in the Battle at Kami River, which greatly enhanced Sanada Masayuki’s reputation.
However, under Toyotomi Hideyoshi, the Sanada were forced to submit fealty to Tokugawa Ieyasu and Sanada Masayuki's son Sanada Nobuyuki was married to an adopted daughter of Ieyasu. After the death of Hideyoshi, the Tokugawa ordered the Sanada to participate in their invasion of Aizu against the Uesugi clan. Sanada Nobuyuki chose to remain on the Tokugawa side, while Sanada Masayuki and his younger son, Sanada Yukimura chose to join the Toyotomi armies under Ishida Mitsunari against the Tokugawa. This led to the Siege of Ueda in 1600, a side battle to the Battle of Sekigahara. The army of Tokugawa Hidetada, while on their way to the Sekigahara battle site was ordered to reduce Ueda Castle along the away. Again, the greatly outnumbered Sanada forces inflicted severe casualties on the Tokugawa and delayed Hidetada so long that he was forced to break off the siege and arrived at Sekigahara too late to make a contribution to the battle.
After the Battle of Sekigahara and the establishment of the Tokugawa shogunate, Sanada Masayuki submitted to Tokugawa Ieyasu, but was dispossessed and Ueda Castle was partially demolished. Sanada Nobuyuki was made daimyō of Ueda Domain, and returned to build a residence in the former San-no-maru area. He was transferred to nearby Matsushiro Domain in 1622, and replaced by the Sengoku clan, who rebuilt parts of the Main Bailey and Second Bailey from 1628, but the donjon was not restored. The Sengoku were in turn replaced by a branch of the Matsudaira clan in 1706, who remained in control of the castle until the end of the Edo period.
Following the Meiji restoration and the abolition of the han system, the castle was dismantled, leaving only the stone ramparts and one yagura. The site was made into a public park, with two Shinto shrines (one dedicated to the Sanada clan, and the other to the war dead), and a local history museum. In 1949, two yagura were reconstructed, and in the 1990s one of the gates was rebuilt.
The area was designated a National Historic Site by the Japanese government in 1934. Ueda Castle was listed as one of the 100 Fine Castles of Japan by the Japan Castle Foundation in 2006.
- Takada, Toru: Ueda-jo in: Miura, Masayuki (eds): Shiro to Jinya. Tokoku-hen. Gakken, 2006. ISBN 978-4-05-604378-5 , S. 100th
- Nishigaya, Yasuhiro (eds): Ueda-jo. In: Nihon Meijo Zukan, Rikogaku-sha, 1993. ISBN 4-8445-3017-8 .
- Schmorleitz, Morton S. (1974). Castles in Japan. Tokyo: Charles E. Tuttle Co. pp. 144–145. ISBN 0-8048-1102-4.
- Motoo, Hinago (1986). Japanese Castles. Tokyo: Kodansha. p. 200 pages. ISBN 0-87011-766-1.
- Mitchelhill, Jennifer (2004). Castles of the Samurai: Power and Beauty. Tokyo: Kodansha. p. 112 pages. ISBN 4-7700-2954-3.
- Turnbull, Stephen (2003). Japanese Castles 1540-1640. Osprey Publishing. p. 64 pages. ISBN 1-84176-429-9.
|Wikimedia Commons has media related to Ueda Castle.|