 A town developed around the temple to support travelers.The castle and shrine towns formed the city.During the Meiji Restoration Japan's provinces were restructured into prefectures and the government changed from family to bureaucratic rule.