During the Ninth Century BC, Egypt became dominated by foreign rulers including the Libyans and Assyrians and again looked for help from her southern black neighbor. The Nubian emperor Piankhy conquered all of Egypt and became the first ruler of the 25th Egyptian dynasty. He sponsored a cultural revival in Egypt and resurrected the linguistic and artistic style of the old and middle Egyptian kingdoms. He refurbished all the Egyptian temples and monuments and had many new pyramids and other buildings erected.