In 1510, the Spaniards had established themselves on a small island in front of Algiers, and forced the local ruler Sālim al-Tūmī (Selim-bin-Teumi) to accept their presence through a treaty and pay tribute. Fortifications were built on the islet, and a garrison of 200 men was established. Sālim al-Tūmī had to go to Spain to take an oath of obedience to Ferdinand of Aragon.