▁to ▁turn ▁back ▁from ▁Northern ▁Shin ano ▁to ▁deal ▁with ▁it . ▁At ▁one ▁point , ▁the ▁H ō j ō ▁had ▁come ▁close ▁to ▁cont rolling ▁most ▁of ▁Shin ano ▁province , ▁but ▁then ▁in ▁October , ▁Mas ay uki ▁suddenly ▁bet rayed ▁them , ▁providing ▁help ▁to ▁Y oda ▁Nob ush ige , ▁a ▁local ▁lord ▁who ▁had ▁been ▁resist ing ▁against ▁H ō j ō ' s ▁adv ances ▁under ▁the ▁Tok ug awa ▁b anner ▁at ▁Kas uga ▁Castle . ▁He ▁then ▁officially ▁defect ed ▁to ▁the ▁Tok ug awa ' s ▁side . ▁Fac ed ▁with ▁this ▁development , ▁H ō j ō ▁U j ina o ▁saw ▁his ▁position ▁in ▁the ▁conflict ▁weak en ▁and ▁decided ▁for ▁a ▁peace ▁treat y ▁and ▁further ▁al liance ▁with ▁the ▁Tok ug awa ▁cl an . ▁This ▁event ▁marked ▁the ▁end ▁of ▁the ▁conflict ▁which ▁last ed ▁for ▁roughly ▁ 5 ▁months ▁after ▁Nob un aga ' s ▁death . ▁Mas ay uki ▁was ▁now ▁a ▁v ass al ▁of ▁Tok ug awa ▁I ey as u . ▁ ▁Con front ation ▁with ▁the ▁Tok ug awa ▁ ▁In ▁ 1 5 8 3 , ▁Mas ay uki ▁started ▁the ▁construction ▁of ▁U eda ▁Castle ▁and ▁the ▁surrounding ▁town . ▁It ▁became ▁the ▁headquarters ▁of ▁the ▁San ada ▁cl an ▁in ▁the ▁following ▁years . ▁ ▁In ▁ 1 5 8 4 , ▁Tok ug awa ▁I ey as u ▁lead ▁his ▁army ▁west ▁towards ▁O w ari ▁province ▁in