NSW has scrapped a law that effectively allowed employers to fire or refuse to hire a woman because she was pregnant.
The changes, passed by parliament on Wednesday, will bring NSW in line with other states, where women who face sex discrimination in the private sector can make a complaint to the Human Rights Commission.
A loophole previously prevented women in NSW from taking that course of action, Attorney-General Mark Speakman said.
"In this day and age, it's unacceptable that a woman could be overlooked for a role or dismissed from a new position once it becomes apparent that she is pregnant," Mr Speakman said in a statement.
Minister for Women Tanya Davies described the old laws as "outdated," saying they discriminated against pregnant women who were job hunting.
The government acknowledged the work of Greens MP Dr Mehreen Faruqi in advocating for the change.
Australian Associated Press