During the Muromachi period (1336 to 1573), 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. This was the start of what would become the city of Kanazawa.