From the 9th century BC onwards, the Assyrians had been expanding their domain from northern Mesopotamia into Judea and Babylon. After defeating the Babylonians in 689 BC, King Sennacherib sought to punish the Kingdom of Elam for its support towards Babylonia.