Mehmed Ali Pasha of Egypt wanted to expand his territory into Syria. In 1832 he invaded Syria and occupied it. However, the Ottomans did not want to lose any more land so they sent troops against him. After defeating the Egyptian army at Nizip, the two sides signed a peace treaty in 1833. Under its terms, Mehmed Ali retained control of Syria but also had to pay tribute to the Porte.