what were the chinese states doing during the time confucius lived
Confucius In Confucius's time, the state of Lu was headed by a ruling ducal house.[22] Under the duke were three aristocratic families, whose heads bore the title of viscount and held hereditary positions in the Lu bureaucracy. The Ji family held the position "Minister over the Masses", who was also the "Prime Minister"; the Meng family held the position "Minister of Works"; and the Shu family held the position "Minister of War". In the winter of 505 BC, Yang Hu—a retainer of the Ji family—rose up in rebellion and seized power from the Ji family. However, by the summer of 501 BC, the three hereditary families had succeeded in expelling Yang Hu from Lu.[23] By then, Confucius had built up a considerable reputation through his teachings, while the families came to see the value of proper conduct and righteousness, so they could achieve loyalty to a legitimate government. Thus, that year (501 BC), Confucius came to be appointed to the minor position of governor of a town. Eventually, he rose to the position of Minister of Crime.[24]
Shang dynasty The Shang dynasty (/ʃɑːŋ/;[2] Chinese: 商朝; pinyin: Shāng cháo) or Yin dynasty (/jɪn/; 殷代; Yīn dài), according to traditional historiography, ruled in the Yellow River valley in the second millennium BC, succeeding the Xia dynasty and followed by the Zhou dynasty. The classic account of the Shang comes from texts such as the Book of Documents, Bamboo Annals and Records of the Grand Historian. According to the traditional chronology based on calculations made approximately 2,000 years ago by Liu Xin, the Shang ruled from 1766 to 1122 BC, but according to the chronology based upon the "current text" of Bamboo Annals, they ruled from 1556 to 1046 BC. The Xia–Shang–Zhou Chronology Project dated them from c. 1600 to 1046 BC.