One day he is in prison. The next, he is Malaysia's leader-in-waiting.

"Long live Anwar! Long live Anwar!"

Deafening chants ring out through the warm night air as the massive crowd in the Malaysian capital gathers to witness history in the making.

The crowds are out in force to see Anwar Ibrahim who, for so long, has been behind bars.

Now pardoned by the king, the once high-flying politician is finally back in public and back in the political arena at this defining moment in his country's history.

"Now there is a new dawn for Malaysia. I must thank the people of Malaysia. Malays, Chinese, Indians, Kadazans, Iban. Entire spectrum of our Malaysians, regardless of race and religion who stood by the principles of democracy and freedom.

"They demand change and it is our duty now to ensure that this mandate given to Pakatan Harapan will honour this commitment," Anwar told supporters the night of his release from prison.

Now there is a new dawn for Malaysia. I must thank the people of Malaysia ... regardless of race and religion who stood by the principles of democracy and freedom

Anwar Ibrahim

Anwar would still be languishing in jail if it wasn't for a stunning election result in Malaysia earlier this month. One that saw a seemingly untouchable Prime Minister Najib Razak rejected by voters and now facing an investigation into a multi-billion-dollar corruption scandal.

In his nine years in power, Najib held a tight grip on his country, controlling Malaysia’s media, the judiciary and targeting and imprisoning his opponents and critics.

Anwar and the new coalition government promise to change all that.

But while his party is in government for the first time, Anwar does not yet have a seat.

The man who is currently in charge, is his former boss and rival, 92-year-old Mahathir Mohamad.

Anwar was once deputy prime minister to Mahathir Mohamad but after a falling out, he was sacked and then jailed on sodomy and corruption charges. Mahathir once said Anwar was "morally unfit to govern the country."

But times have changed.

Anwar made an incredible political recovery, almost leading the opposition to victory in 2013 elections. But he was jailed again in 2015 for sodomy charges while Najib was Prime Minister.

While in jail, his health deteriorated and he spent the last few months in hospital, where he watched the election results unfold.

Al Jazeera was at the hospital with Anwar and his family as he prepared to go to the palace to receive a royal pardon from Malaysia's King.

Now cleared of all wrongdoing, Anwar's political career has been resurrected and he can return to national politics by winning a parliamentary seat. Mahathir promises to hand over power to him within two years.

Will Anwar Ibrahim finally rise to lead his country?

101 East goes behind the scenes of Malaysia's new dawn.

While Anwar's party is in power for the first time and crowds have gathered to hear him speak, he does not have a seat [Lai Seng Sin/Reuters]

Source: Al Jazeera News