Kanazawa means marsh of gold, after a legend about a potato digger named Togoro who found flakes of gold in the water. The real start was less romantic. During the Muromachi period, followers of the priest Rennyo, the Ikko-ikki, pushed out the governors of Kaga and ran the province themselves. Their stronghold stood on the Kodatsuno ridge, with hills behind it and a river on each side, and a castle town grew around it.
Oda Nobunaga sent his generals against the Ikko-ikki in 1580. After Nobunaga was killed in 1582, Maeda Toshiie took the province and founded Kaga Domain. He backed Tokugawa Ieyasu at Sekigahara in 1600 and was rewarded with 1.2 million koku, the biggest domain in the shogunate. The Maeda ruled from the castle until the Edo period ended.
The shogunate was wary of the Maeda's wealth. To answer that, Toshitsune handed over his own mother as a hostage in Edo, and the Shogun's daughter became his wife. She was three when the match was made, and her arrival is still marked every June. The Maeda then spent on lacquer, gold work and art collecting instead of weapons, which eased the shogunate's suspicion.
The town grew fast. Before the Maeda arrived it held about 5,000 people, and by 1700 it had more than 100,000, a size that matched Rome, Amsterdam and Madrid. All the domain's samurai had to live in the city, so over three-quarters of it ended up as samurai housing. Fire swept through in 1631, and a year later Toshitsune had a canal dug to bring the castle its water from far up the Sai. That water system still feeds the moats and Kenroku-en.
The Meiji era took away the samurai's income, and many sold their estates, which became fields and then modern housing. That is why Nagamachi has so few real samurai houses. Kenroku-en opened to the public in 1875, fire destroyed most of the castle in 1888, and the modern city was created in 1889. Kanazawa was spared in the Second World War, and the Hokuriku Shinkansen from Tokyo brought more foreign visitors from 2015.