The Shang dynasty (Chinese: 商朝; pinyin: Shāngcháo), also known as the Yin dynasty (殷代; Yīn dài), was a Chinese royal dynasty that ruled in the Yellow River valley during the 2nd millennium BC, traditionally succeeding the Xia dynasty and followed by the Western Zhou dynasty. The classic account of the Shang comes from texts such as the Book of Documents, Bamboo Annals and Shiji. Modern scholarship dates the dynasty between the 16th and 11th centuries BC, with more agreement surrounding the end date than beginning date.