Through teary and tired eyes politicians in Victoria's upper house have voted 22-18 in favour of legalising voluntary assisted dying.
After months of heated debate the controversial legislation cleared what most consider the final hurdle on Wednesday, with Victoria now poised to become the first Australian state to legalise such a scheme.
The final tick is due next week with the lower house expected to approve amendments before an 18-month turnaround, meaning the scheme can be operational by 2019.
'This is a momentous day in the parliament of Victoria,' Labor MP Gavin Jennings told the legislative council after the narrow vote.
The chamber started sitting at midday on Tuesday and took only a short break for lunch on Wednesday during the marathon.
'I haven't had a wink of sleep,' the Liberal's Inga Peulich told the legislative council after 27 hours of back-and-forth, as the government-proposed bill neared a vote.
'You've made a terrible mistake,' anti-voluntary assisted dying campaigner Frances Beaumont yelled at MPs.
Euthanasia advocate and media identity Andrew Denton left parliament after the vote without comment, saying he would leave the commentary to the politicians.