The 31-year-old was successful on his fourth attempt on Thursday in the NSW Supreme Court, on condition of a $200,000 surety.
Justice Desmond Fagan said the former Auburn deputy mayor was "his own worst enemy" and his behaviour had been "extremely erratic", but gave Mehajer strict conditions for his release.
Mehajer, who has been in custody since January, will have to report to Bankstown police station twice daily, not leave the state
of NSW and not go within 500 metres of Sydney airport.
Justice Fagan suggested Mehajer's history showed a "snowballing of idiocy", to which prosecutors agreed, but said the Crown had an unduly pessimistic and alarmist view of him based on his ability to "talk himself up".
