Confucius is traditionally credited with having authored or edited many of the Chinese classic texts including all of the Five Classics, but modern scholars are cautious of attributing specific assertions to Confucius himself. Aphorisms concerning his teachings were compiled in the Analects, but only many years after his death.
Confucius's principles had a basis in common Chinese tradition and belief. He championed strong family loyalty, ancestor worship, respect of elders by their children (and in traditional interpretations) of husbands by their wives. He also recommended family as a basis for ideal government. He espoused the well-known principle "Do not do to others what you do not want done to yourself".