Hsinchu's Cheng Huang was a county Cheng Huang during the eighteenth century but when Hsin-chu was incorporated into the jurisdiction of Taipei prefecture in the late nineteenth century he became a prefectural Cheng Huang. Following this it is said that he appeared and repelled an enemy force for which he was knighted and became today's "metropolitan Cheng Huang."
新竹城隍在乾隆時只是縣城隍，光緒時隨新竹納入台北府轄區，而升任「府」城隍；之後更傳說顯靈退敵，而加官晉爵成為今天的「都城隍」。