In 1821, the Ottoman ruler of Egypt, Muhammad Ali of Egypt, had invaded and conquered northern Sudan. Although technically the Vali of Egypt under the Ottoman Empire, Muhammad Ali styled himself as Khedive of a virtually independent Egypt. Seeking to add Sudan to his domains, he sent his third son Ismail (not to be confused with Ismaʻil Pasha mentioned later) to conquer the country, and subsequently incorporate it into Egypt. With the exception of the Shaiqiya and the Darfur sultanate in Kordofan, he was met without resistance. The Egyptian policy of conquest was expanded and intensified by Ibrahim Pasha's son, Ismaʻil, under whose reign most of the remainder of modern-day Sudan was conquered.