In 1640 Portugal regained its independence, but Ceuta opted to remain with Spain, a situation that was officially acknowledged in the Treaty of Lisbon (1668). After this Portugal retained only three enclaves in North Africa - Tangier, Casablanca and El Jadida. Tangier was ceded to England in 1661 under the Marriage Treaty as part of the dowry of Catherine of Braganza, and Casablanca was abandoned after the Lisbon earthquake of 1755. Under siege by Muhammad III, El Jadida was evacuated on 10 March 1769, bringing an end to the Portuguese presence in North Africa.