Voluntary assisted dying has been made legal in New South Wales.
The legislation passed the Lower House of parliament, after a vote to accept the amendments from the Upper House.
The Upper House spent 10 hours debating amendments before a final vote of support 23 to 15.
All MPs were given a conscience vote.
MPs debated nearly 100 amendments on Wednesday in a sitting that lasted until midnight.
NSW is the last state to legalise voluntary assisted dying.