After King Kashta ("the Kushite") invaded Egypt in the eighth century BC, the Kushite kings ruled as pharaohs of the Twenty-fifth Dynasty of Egypt for nearly a century before being defeated and driven out by the Assyrians. At the height of their glory, the Kushites conquered an empire that stretched from what is now known as South Kordofan to the Sinai. Pharaoh Piye attempted to expand the empire into the Near East but was thwarted by the Assyrian king Sargon II.