(BBC NEWS) Kuala Lumpur – Judge Zabidin Mohamad Diah said DNA evidence submitted by the prosecution was unreliable and discharged the case.
Mr Anwar, 64, has consistently denied the charges and called them a government bid to cripple his political ambitions and influence.
The government said the verdict showed Malaysia’s judiciary was free from government influence.
Sodomy is illegal in Muslim-majority Malaysia but, says the BBC’s Jennifer Pak in Kuala Lumpur, very few people are ever prosecuted.