In 1577, when Hideyoshi TOYOTOMI advanced to Himeji-jo Castle in Harima Province to carry out the Oda army's strategy for subjugating the Chugoku district, Yukimori and his party entered Kozuki-jo Castle located to the west of Himeji-jo Castle.
天正5年（1577年）、織田軍の中国平定戦略を遂行すべく豊臣秀吉が播磨国姫路城に進出すると、幸盛たちは姫路城の更に西方の上月城に入城。