Complex sentence: He thought that caste system is actually divided communities and preached there was one God and that God is inside every human being.
Split into simpler sentences: He thought that caste system is actually dividing the communities. He preached in one God and that God is inside every human being.