Humayun had to convert to Shi'ism in order to secure military support from the Safavid dynasty of Persia. This was a strategic move on Humayun's part, as he was able to use the support of the Safavids to regain his throne in India.
The Magnificent Reign of Tahmasp I: Uncover the Untold Chapters of the Safavid Shah's Legacy