After the death of Magan Thakur, he received patronage from Saiyad Muhammad Musa, the army chief of King Shrichandra Sudharma. He translated the "Haft Peykar" from Persian as "Saptapaykar" in Bengali at his request. In the eulogy of Saptapaykar, Alaol mentioned the arrival of Mughal prince Shah Shuja in Arakan. In 1659, Shah Shuja took refuge in the court at Arakan. In 1660, after the killing of Shah Shuja, Alaol was also thrown out of the Arakan court because of his closeness with him. According to autobiographical passages in his "Sikandarnama", he was initially imprisoned. At this juncture, Sayed Masud Shah, a minister or Qazi of the Arakan king gave him shelter. Masud Shah also gave Alaol Khilafat under Qadiriyya Tariqa. Alaol completed his "Saifulmuluk Badiuzzamal" at his request. He spent his last days in the court of Majlis Navaraj, another minister of Arakan, where he wrote his last work "Sikandarnama" (according to Ahmed Sharif) or "Dara-Sikandar" (according to Sukumar Sen), a translation of "Eskander-nama" by the Persian poet Nizami Ganjavi. His works, apart from "Ragtalnama", are adaptations of works in other languages which include:  His poems draw upon his deep engagement with Sufism. Alaol Hall, a principal male student dormitory at the University of Chittagong in Bangladesh, is named after him.