In 1840, 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. Bashir Shihab III was then appointed. On January 13, 1842, the sultan deposed Bashir III and appointed Omar Pasha as governor of Mount Lebanon. This event marked the end of the rule of the Shihabs.