A Chinese history timeline, comprises important legal and territorial changes and political events in China and its predecessor states. As the Chinese History timeline diagram shows that the earliest ruling dynasty of China to be established in record history, the Shang was headed by a tribal chief named Tan. The Shang era is marked by intellectual advances in astronomy and mathematics. Similarly to this, from 551-479 BC, Confucius entered politics in 501 BC as a town governor after gaining attention as a teacher, but in 498 BC, he lived in exile to escape political enemies.