Anwar stood trial on four charges of corruption, arising from allegations that Anwar abused his power by ordering police to intimidate persons who had alleged Anwar had sodomised them. Before Anwar's trial, Mahathir told the press that he was convinced of Anwar's guilt. He was found guilty in April 1999 and sentenced to six years in prison. In another trial shortly after, Anwar was sentenced to another nine years in prison on a conviction for sodomy. The sodomy conviction was overturned on appeal after Mahathir left office.