 Retainers were ordered to obey shogunal laws while outside the domain, but within it, shogunal orders did not apply unless conveyed by the "daimyō".In 1664, the third "daimyō" of Yonezawa, Uesugi Tsunakatsu, died without producing an heir.The succession was determined at the advice of his father-in-law, Hoshina Masayuki, the younger brother to "shōgun" Tokugawa Iemitsu.