
Malaysia will swear in long-time opposition leader Anwar Ibrahim as prime minister at 5 p.m. (0900 GMT) on Thursday, after he was appointed by the king, bringing an end to five days of political uncertainty following an unprecedented hung parliament.
Here is a brief history of Anwar's three-decade-long political journey: