As Badis was located in the Portuguese area of influence in the North-African coast, there was conflict with the Kingdom of Portugal, but, following the Spanish assistance to the Portuguese in Arcila, King Manuel I of Portugal agreed to the Spanish conquest in late 1508; this was formally ratified and enshrined in the 1509 Treaty of Sintra. Also in 1509, after the Spanish conquest of Oran, the emir of Badis resumed negotiations with the Hispanic Monarchy. In any case, the cannons installed in the rock proved ineffective as, lacking range, they were unable to deter the movement of the fustas in and out the cove of Badis. The rock was lost in 1522 and, having become a dangerous Ottoman base, the Saadid sultan evacuated its Moroccan inhabitants and handed it over to the Spaniards in 1564.