The City God Shrine in Shanghai, built as the Jinshan God Temple, devoted to the spirit of Jinshan, or "Gold Mountain", and landmass off the shore of Shanghai. It was rehabilitated to City God Temple in 1403, through the Yongle period of the Ming family.
Throughout the Qing Family, the shrine grew popular. Inhabitants of the ancient city, in addition to areas nearby, visited the holy place to pray for decent, destiny, and peace. The place of worship reached its main extent in the Daoguang period. The admiration of the holy place also extended to many trades that set up in the area, moving the near streets into a busy market.
During the period of China’s Culture Revolution, the shrine was shut down and used for other purposes. For several years, the major hall was used as a jewellery shop. In 1994, the temple was reinstated to its previous use as a place of worship, with local Taoist ministers. The Shrine, together with nearby Yuyuan Garden and the nearby roads are now portion of a big pedestrian zone dedicated to cafes and retail.
A whole renovation of the Urban God Temple took place between 2005 and 2006. However in October 2006 the temple was revived and reconsecrated by Taoist ecclesiastics.