Anwar Ibrahim last year began serving a five-year jail term for sodomising a male aide, charges that his supporters say were trumped up to sideline the former deputy prime minister, who reinvented himself as an opposition firebrand.
The government denies the charge, insisting that its judicial system is independent and impartial.
Human Rights Watch called the decision by the Federal Court a "real tragedy for justice in Malaysia".
"This outcome shows that the Malaysian courts were no match for Prime Minister Najib Razak’s political vendetta against Anwar," Human Rights Watch's Deputy Asia Director Phil Robertson said.
Anwar was heir-apparent to leadership of the ruling United Malays National Organisation (UMNO) in the late 1990s until his ouster in a power battle with then-leader Mahathir Mohamad.
He was jailed in 1998 for six years on sodomy and corruption charges that he also called politically motivated.
He later helped unite a previously divided opposition into a formidable force that achieved historic election gains.
But since last year, the opposition has fractured without his unifying presence.
Najib is due to call fresh elections by mid-2018 with the country in outrage over allegations that billions of dollars went missing from state fund 1MDB, which he founded.
Both Najib and 1MDB deny any wrongdoing.