With military success in the Shikoku Conquest in 1585, Hidetsugu TOYOTOMI was given Omi, a 430,000-koku fief (feudal domain estimated to produce 2.15 million bushels of rice annually), where he built the Hachiman Castle in Mt. Hachiman and opened a castle town.
1585年（天正13年）、四国征伐で軍功を挙げた豊臣秀次は、近江43万石を与えられ、八幡山に八幡城を築城し、城下町を開町した。