When Humayun left India in 1540, he married Hamida Banu Begum on his way to Sind. When they stayed in Amorkot, a Hindu kingdom ruled by Rana Prasad, Akbar was born in 1542.
Humayun then proceeded to Iran and sought help from its ruler. He later defeated his brothers, Kamran and Askari. In the meantime the Sur dynasty in India was declining rapidly. In 1555, Humayun defeated the Afghans and recovered the Mughal throne. After six months, he died in 1556 due to his fall from the staircase of his library.
His biography Humayunnama was written by Gulbadan Begum in Persian language.
He was buried in Delhi.