Sébastiani to leave Ottoman territory, but the French Ambassador explained that he would not do so until being ordered by Selim himself. As the matter was being debated, Janissary forces on the Anatolian shore organized themselves, and, once increased in strength, began responding to the attack. Selim subsequently asked Sébastiani and his men (including Louis Gustave le Doulcet and , as well as the embassy's secretary ), to oversee Constantinople's defense and the line of fire nearby Topkapı Palace, organizing maneuvers which caused Duckworth to withdraw. In 1806, Sébastiani married Jeanne-Françoise-Antoinette (Fanny) , only daughter of François-Henri de Franquetot, marquis de Coigny). She died in childbirth while in Constantinople, just a few days before the Sultan was deposed (14 April 1807), and left Sébastiani a large fortune. Upon hearing news of her death, Sultan Selim transmitted condolences through his Grand Dragoman. Embassy to Mustafa IV The successful rebellion led by Kabakçı Mustafa and the Janissary troops put an end to French diplomatic success. Sébastiani negotiated with Kabakçı, while the British sought support from various factions inside Constantinople — the Grand Dragoman, , eventually informed the French Ambassador on the parallel British projects. This resulted in Soutzos' beheading — that which, in Ion Ghica's version of events, caused the Soutzos family to abandon their commitment to France and begin supporting Russia. According to the Revue des Deux Mondes biography, Sébastiani had betrayed Aleko Soutzos' confidence by revealing as many details of Anglo-Ottoman negotiations as to render it clear that the Dragoman had been acting as his spy, and by failing to respect the promise of French protection. Under the new monarch, Mustafa IV, he attempted to impose a pro-French pasha as governor of Baghdad, and later provoked a scandal by asking for the Imperial Executioner, the Bostanji-bashi, to be demoted—this came after three Ragusan subjects, having been found guilty of theft, were subjected to the falaka torture, despite the facts that the recent annexation of Ragusa by France offered them a degree of immunity. As a result of his pressures, Sébastiani obtained rule over the province of Baghdad for his favorite, and, in return, allowed the Bostanji-bashi to remain in office. He asked to be recalled in April 1807, being replaced by Chargé d'affaires Faÿ de La Tour Maubourg. This departure was also prompted by renewed British requests. Shortly before his leaving, Sultan Mustafa awarded Sébastiani the Order of the Crescent