 The city had been conquered from Vijayanagar by the Bahmani Sultans in 1469, and passed to Bijapur.In late 1509, the remains of the Mamluk fleet defeated in the battle of Diu had taken refuge there.In 1510 the new governor Afonso de Albuquerque wanted to fight the Egyptian Mamluk Sultanate fleet in the Red Sea or return to Hormuz.