Ibn Battuta agrees with the pearl merchant to help him against the villains in exchange for weapons. Ibn Battuta refuses to help him with weapons and offers to get rid of the evil Sultan without resorting to murder.
The guard tells the merchant that he was forced to do everything that the Sultan orders until his father gets out of prison. He agrees with him to claim that he caught him and put him in prison until the Sultan is disposed of without killing him with poison.
With the help of Ibn Battuta, the merchant and the guard succeeded in putting the evil Sultan in prison, and ridding the people of his oppression. Ibn Battuta bids them farewell and decides to return to Tangier.