The war that took place between Pharaoh Taharqa and the Assyrian king Sennacherib was a decisive event in western history, with the Nubians being defeated in their attempts to gain a foothold in the Near East by Assyria. Sennacherib's successor Esarhaddon went further and invaded Egypt itself to secure his control of the Levant. This succeeded, as he managed to expel Taharqa from Lower Egypt. Taharqa fled back to Upper Egypt and Nubia, where he died two years later. Lower Egypt came under Assyrian vassalage but proved unruly, unsuccessfully rebelling against the Assyrians. Then, the king Tantamani, a successor of Taharqa, made a final determined attempt to regain Lower Egypt from the newly re-instated Assyrian vassal Necho I. He managed to retake Memphis killing Necho in the process and besieged cities in the Nile Delta. Ashurbanipal, who had succeeded Esarhaddon, sent a large army in Egypt to regain control. He routed Tantamani near Memphis and, pursuing him, sacked Thebes. Although the Assyrians immediately departed Upper Egypt after these events, weakened, Thebes peacefully submitted itself to Necho's son Psamtik I less than a decade later. This ended all hopes of a revival of the Nubian Empire, which rather continued in the form of a smaller kingdom centered on Napata. The city was raided by the Egyptian c. 590 BC and the Kushite resettled in Meroë.