At around the same time, the all-important port of Bombay, which had hitherto been in the possession of the Portuguese, was transferred to the British in 1665 and handed over formally to the East India Company in 1668. This state of affairs coincided with a number of attacks by Shivaji on the fort of Janjira, all of which had been unsuccessful. In 1669, Shivaji attacked Janjira once again. Although the Portuguese had declared their friendship towards the Sidis, there was little sign of that friendship being honoured, as one of the Sidi vessels was captured by the Portuguese. This left the Sidis reliant on the goodwill of the British, to whom they offered their vessels for trading purposes. As highlighted above, however, it was clear that the British also had their eyes on Janjira in view of its advantageous position and were willing to grant concessions to the Sidis in the interim with regard to their presence in Bombay, albeit with utmost caution. By then, under the Mughal emperor Aurangzeb, the Sidis had been appointed as admirals to the Mughal fleet on the west coast on account of their naval prowess in 1660, and they proved their mettle not only in service to the Mughals but also in defeating Shivaji once more in 1672 under Sidi Yakut Khan.