Despite this show, Muhammad Ali's goal was now to remove the current Ottoman Sultan Mahmud II and replace him with the sultan's son, the infant Abdülmecid. This possibility so alarmed Mahmud II that he accepted Russia's offer of military aid resulting in the Treaty of Hünkâr İskelesi.