After AZAI clan was subverted in 1573, Hideyoshi was given three counties of northern Omi, which had been ruled by AZAI, changed the place-name of Imahama to Nagahama, and became a lord of Nagahama Castle (in Omi Province).
天正元年（1573年）、浅井氏が滅亡すると、その旧領北近江国三郡に封ぜられて、今浜の地を「長浜」と改め、長浜城(近江国)の城主となる。