In 1805, a group of prominent Egyptians led by the ulema (scholars, savants) demanded the replacement of Wāli (viceroy) Khurshid Ahmad Pasha by Muhammad Ali, and the Ottomans yielded.