 During the Muromachi period, as the powers of the central shōguns in Kyoto was waning, Kaga Province came under the control of the Ikkō-ikki, followers of the teachings of priest Rennyo, of the Jōdo Shinshū sect, who displaced the official governors of the province, the Togashi clan, and established a kind of theocratic republic later known as "The Peasants' Kingdom".Their principal stronghold was the Kanazawa Gobo, on the tip of the Kodatsuno Ridge.Backed by high hills and flanked on two sides by rivers, it was a natural fortress, around which a castle town developed.