Pasha. Politically, the British were allied with the Ottoman government in Istanbul (doing so in order to prevent the Russians from gaining access to the Mediterranean) and had also assisted in repelling Ali's attempt to capture Istanbul in 1833. The French were able to manoeuvre in Egypt under Ali's graces by playing off the British intervention against Ali in Istanbul. In 1833 Lesseps was sent as consul to Cairo, and soon afterwards given the management of the consulate general at Alexandria, a post that he held until 1837. While in Egypt he encountered and was influenced by Barthélemy Prosper Enfantin, who was working on a dam north of Cairo for Ali while preaching for a union of the Mediterranean and Red Seas. While he was there an epidemic of plague broke out and lasted for two years, resulting in the deaths of more than a third of the inhabitants of Cairo and Alexandria. During this time Lesseps went from one city to the other with zeal and energy. Towards the close of the year 1837 he returned to France, and on 21 December married Agathe Delamalle (1819–1853), daughter of the government prosecuting attorney at the court of Angers. By this marriage de Lesseps became the father of five sons: Charles Théodore de Lesseps (1838–1838), Charles Aimé de Lesseps (1840–1923), Ferdinand Marie de Lesseps (1842–1846), Ferdinand Victor de Lesseps (1847–1853) and Aimé Victor de Lesseps (1848–1896). In 1839 Lesseps was appointed consul at Rotterdam, and in the following year transferred to Málaga, the ancestral home of his mother's family. In 1842 he was sent to Barcelona, and soon afterwards promoted to the grade of consul general. In the course of a bloody insurrection in Catalonia, which ended in the bombardment of Barcelona, de Lesseps offered protection to a number of men threatened by the fighting regardless of their factional sympathies or nationalities. From 1848 to 1849 he was minister of France at Madrid. In 1849 the government of the French Republic sent Lesseps to Rome to negotiate the return of Pope Pius IX to the Vatican. He tried to negotiate an agreement whereby Pope Pius could return peacefully to the Vatican but also ensuring the continued independence of Rome. But, during negotiations, the elections in France caused a change in the foreign policy of the government – Alexis de Tocqueville replaced the previous foreign minister. Lesseps course was disapproved; he was