Complex sentence: Many of the walled cities in China contained a temple referred to as the city god temple, these cities were of no particular size but were dedicated to one or numerous gods who watched over the walled city.
Split into simpler sentences: Many of the walled cities in China contained a temple referred to as the city god temple. These cities were of no particular size but were dedicated to one or more gods who watched over the walled city.