The Treaty of Paris was signed on 25 June 1802 between the First French Republic, then under First Consul Napoleon Bonaparte, and the Ottoman Empire, then ruled by Sultan Selim III. It was the final form of a preliminary treaty signed at Paris on 9 October 1801 that brought to an end the French campaign in Egypt and Syria and restored Franco-Ottoman relations to their "status quo ante bellum". In the treaty the Ottoman Empire also assented to the Treaty of Amiens (25 March 1802), a peace treaty between France and the United Kingdom, which had followed the surrender of French troops in Egypt to the British at the Capitulation of Alexandria.