He faced opposition from the Zamorin of Calicut and the Mameluke Sultan of Egypt.