Reformist politician Anwar Ibrahim has hailed a "new dawn" for Malaysia on his release from prison, days after a stunning opposition election win, BBC reports.
Mr Anwar told jubilant supporters he fully backed his ally and former rival, Prime Minister Mahathir Mohamed.
Earlier he was pardoned from what was widely seen as a politically motivated conviction for sodomy.
Mr Mahathir, who sought the pardon, has promised to step aside for Mr Anwar to become prime minister within two years.
Once seen as a future leader, Anwar Ibrahim then fell out with the government. He was jailed for a second time three years ago on what he said were trumped-up sodomy charges.
After his release, he told a news conference he thanked the people of Malaysia, who "stood by the principles of democracy and freedom".