The Shang Dynasty ( existed from 1600BC - 1046BC ) was the second dynasty in China following the Xia Dynasty . According to historical tradition , the Shang Dynasty followed the ( possibly mythical ) Xia Dynasty and preceded the Zhou Dynasty .