(CNN) - Abortion will be legalized in Queensland, after lawmakers in the Australian state overturned 19th-century legislation banning the procedure.
The Legislative Assembly voted 50-41 to make termination available on request up to the 22nd week of pregnancy.
The bill also creates "safe access zones" of 150 meters around abortion clinics to protect women from harassment by anti-abortion campaigners.
Terminating a pregnancy has been illegal in Queensland since 1899, punishable by up to seven years in prison and classified as an "offence against morality" in its criminal code.
But Wednesday's ruling marks a long-awaited victory for abortion-rights activists there, and the changes could come into effect later this year.
Lawmakers were given a conscience vote on the bill, which passed thanks to support from three Liberal National opposition members. Only one Labor member voted against the bill.
"History has been made. Women will no longer have the fear of committing a crime when making the deeply personal decisions over their own bodies," Queensland's Labor Premier Annastacia Palaszczuk said on Twitter.
"What a day for women. What a day for Queensland. We finally did it," Deputy Premier Jackie Trad added.
Abortion laws in Australia vary by state, with Queensland becoming the fifth to legalize it.
Queensland's laws made headlines in April, when a 12-year-old girl had to seek permission from the Supreme Court to obtain an abortion for the sake of her physical and mental health.
- Trump attacks whistleblower in now-removed tweetstorm
- President Trump: ISIS leader Abu Bakr al-Baghdadi is dead
- South African cyclist injured in scuffle with park rangers
- Elon Musk says Las Vegas tunnel hopefully will be operating by 2020
- At least 5 people died in small plane crash near Louisiana airport
- Thai Navy SEAL dies from infection he contracted during cave rescue
- Federal judge denies bid to undo Georgia voter purge
- Trans activist killed in Toronto