The terms of the peace were that Ali would withdraw his forces from Anatolia and receive the territories of Crete ( then known as Candia ) and the Hijaz as compensation , and Ibrahim Pasha would be appointed Wāli of Syria .
The terms of the peace were that Ali would withdraw his forces from Anatolia and receive the territories of Crete and the Hijaz as compensation .