There are folk religious temples such as a Temple of the Chenghuangshen (City God), at the heart of the old city, and a temple dedicated to the Three Kingdoms general Guan Yu.
Buddhism, in its Chinese varieties, has had a presence in Shanghai since ancient times.