Much of the history of the Shang Dynasty has been deciphered from oracle bones found in Anyang, which present a kingdom at war, with narratives of shifting alliances with other powers. Prisoners of war were used as slaves or sometimes slaughtered for sacrifice.