Media playback is unsupported on your device Media caption The New South Wales abortion ruling is a milestone for the state, says premier Gladys Berejiklian.
Abortion has been decriminalised across Australia after the last remaining state where it was illegal, New South Wales (NSW), voted to reform its laws.
The bill, passed on Thursday, overturns a 119-year-old law which had been criticised by opponents as archaic.
The legislation had generated weeks of heated debate and deeply divided the state's conservative government.
Previously, abortions were possible in NSW only if a doctor deemed there was "serious risk" to a woman's health.
The legislation was passed 26-14 in the state's upper house after discussions about more than 100 possible amendments.
The law makes it legal for terminations to be conducted up to 22 weeks into a woman's pregnancy - or later if two doctors agree. »