A refugee with delusions about a legal conspiracy against him has had his sexual assault convictions overturned on appeal because of a miscarriage of justice.
Cihan Camurtay had been sentenced to six years' jail after a jury found him guilty of raping and sexually assaulting a woman at her Melbourne CBD apartment in November 2016.
He was tried twice after a judge dismissed lawyers' concerns about his mental state.
Camurtay insisted on representing himself, refusing repeated and strong suggestions he accept legal help.
He made "outlandish" claims about being the victim of corrupt police, lawyers and judges.
The refugee from Turkey was diagnosed with a delusional or schizophrenia-type disorder following his conviction for raping the woman after consensual sex with her house guest.
Victoria's Court of Appeal on Thursday quashed Camurtay's convictions.
Three appeal justices found the first judge's failure to have the man's mental fitness to stand trial assessed amounted to a substantial miscarriage of justice.
"If I am sick-minded, why haven't I committed rape in the past?" Camurtay told the second jury.
The first jury had been discharged because the alleged victim's DNA samples were contaminated in the laboratory.
"I mean we have females in Turkey too and there are women everywhere, even beyond this case, this incident, and this lady (the alleged victim) is actually a lot older than me too, he said.
Camurtay added "the person guilty here is the informant of this case".
"The women that are accusing me of rape have raped me and they planned this," he also said.
"How many people have need (to end) up in jail because of bribe-taking judges, lawyers, corrupt police and money-seeking social workers?"
The Court of Appeal was told Camurtay "continues to hold conspiratorial beliefs regarding the police and how it affected his court hearing".
"However, he has now expressed confidence in his current lawyers and the courts, which is probably attributable to psychotropic treatment," forensic psychiatrist Prashant Pandurangi said.
Ahead of Camurtay's first trial before Judge Susan Pullen, one lawyer raised concerns the man "did not seem particularly stable" and said "if he's putting it on for some reason - he's doing a pretty damn good job".
"He's been able to give instructions, he just changes his instructions. There's no suggestion of mental health issues here," the judge replied.
Justices Phillip Priest, Richard Niall and Mark Weinberg disagreed.
They ordered a re-trial, but said the first step would be determining the "real and substantial question" of whether Camurtay was fit to be tried again.