The terms of the peace were that Muhammad Ali would withdraw his forces from Anatolia and receive the territories of Crete and the Hejaz as compensation. Ibrahim Pasha would be appointed Wāli of Syria. The peace agreement fell short, however, of granting Muhammad Ali an independent kingdom for himself, leaving him wanting.