Complex sentence: In China, every village had a shrine to Tu Di Gong, who is believed to be in charge of administering the affairs of a particular village.
Split into simpler sentences: In China, every village had a shrine to Tu Di Gong. It was this deity who was in charge of administering the affairs of a particular village.