The Zhou dynasty lasted from 1045 BC until 256 BC. The Shangs had became weak because they were always fighting with a neighboring tribes. This was good for the less advanced Zhou. They defeat the Shang in the current town of An-yang. After that, the Zhou dynasty took the government. They ruled for the longest time of all Chinese dynasties. 