When Bashir II decided to break away from the Ottoman Empire, he allied himself with Muhammad Ali, the founder of modern Egypt, and assisted Muhammad Ali's son, Ibrahim Pasha, in another siege of Acre. This siege lasted seven months, the city falling on May 27, 1832. The Egyptian army, with assistance from Bashir's troops, also attacked and conquered Damascus on June 14, 1832
Ibrahim Pasha and Bashir II at first ruled harshly and exacted high taxes. These practices led to several revolts and eventually ended their power. In May 1840, despite the efforts of Bashir, the Maronites and Druzes united their forces against the Egyptians. In addition, the principal European powers (Britain, Austria, Prussia, and Russia), opposing the pro-Egyptian policy of the French, signed the London Treaty with the Sublime Porte (the Ottoman ruler) on July 15, 1840. According to the terms of this treaty, Muhammad Ali was asked to leave Syria; when he rejected this request, Ottoman and British troops landed on the Lebanese coast on September 10, 1840. Faced with this combined force, Muhammad Ali retreated, and on October 14, 1840, Bashir II surrendered to the British and went into exile.