In 1805 , a group of prominent Egyptians led by the ulema demanded the replacement of Wāli ( governor ) Ahmad Khurshid Pasha by Muhammad Ali , and the Ottomans yielded .
A group of prominent Egyptians demanded that the Wāli , Ahmad Khurshid Pasha , step down and Muhammad Ali be installed as the new Wāli in 1805 .