Jakarta, Indonesia (CNN) Abu Bakar Bashir, a radical Islamic cleric and the alleged mastermind behind the 2002 Bali bombings, has been granted early release from jail on humanitarian grounds.

Known for his inflammatory rhetoric, he has also been accused of being the spiritual leader of Indonesia's homegrown terror network, Jemaah Islamiyah, and is said to have inspired many of those involved in the 2002 Bali bombings and the 2003 J.W. Marriott bomb attack in Jakarta. He is also known to have pledged allegiance to ISIS during his time in prison.

On Friday, Indonesian President Joko Widodo agreed to release Bashir due to his ill health, according to Yusril Ihza Mahendra, a legal adviser to the head of state.

"The law states that parole is available once two-thirds of a sentence has been served. The most important factor was the humanitarian concern, he is an old man and not really healthy. He has also maintained very good attitude while in prison," Yusril told CNN by phone on Friday.

Read More