Confucianism provides the foundation for China's traditional moral code. It also deals with scholarly studies and rituals for honoring the ancestors.