 Mughal emperor Humayun attacked Gujarat in 1535 and briefly occupied it.Thereafter Bahadur Shah was killed by the Portuguese while making a deal in 1537.The end of the sultanate came in 1573, when Akbar annexed Gujarat in his empire.