In 1806, Bonaparte, by then French Emperor, again dethroned King Ferdinand and appointed his brother, Joseph Bonaparte, as King of Naples. In the Edict of Bayonne of 1808, Napoleon removed Joseph to Spain and appointed his brother-in-law, Joachim Murat, as King of the Two Sicilies, though this meant control only of the mainland portion of the kingdom.[22][23] Throughout this Napoleonic interruption, King Ferdinand remained in Sicily, with Palermo as his capital.