Labour MP Louisa Wall has announced her resignation, 14 years after starting in Parliament.
The list MP based in South Auckland won marriage equality for same-sex couples.
Wall was first elected in 2008 on her party's list, and held the Manurewa seat from 2011 to 2020.
But she was pressured not to run again in Manurewa at the last election.
The Labour Party announced her resignation in a statement and Wall said she would not be speaking further today.
Wall considered legal action against the party's ruling New Zealand Council for allowing one of her challengers, Arena Williams, to submit a late nomination.
Wall today said events during the 2020 general election had prompted her resignation.
Her supporters negotiated a deal at the time.
The deal involved Wall getting a winnable position on Labour's list and possible help finding a good appointment in the current term to help her exit from Parliament.
"It's been an honour to represent and provide a voice in Parliament to those who are so often unheard," Wall said in the statement.
"It was a privilege to lead the marriage equality law change," she added.
"Not being able to get married to the person you loved unfairly marginalised members of the rainbow community and was unjust."
She said she loved working as a parliamentarian and enjoyed building relationships with MPs from other parties.
"Most recently I've thoroughly enjoyed my role as co-chair of the Inter-parliamentary Alliance on China and advocating for human rights."
Wall said she'd stay involved with indigenous rights, human rights, equality and the rights of women and the LGBTQI+ community.
She will make her farewell valedictory speech at Parliament on April 14.
Prime Minister Jacinda Ardern said Wall was a hero to many throughout her parliamentary career.
"Her commitment to human rights and equality has been absolutely unwavering. She has been relentless in her pursuit of human rights for all," Ardern said.
The most likely person to replace Wall in Parliament is Lemauga Lydia Sosene, who is next on Labour's list.
Sosene is chairwoman of Auckland Council's Māngere-Ōtāhuhu Local Board.
If Sosene decides not to go to Parliament, the next in line is former army officer Dan Rosewarne, of Waimakariri, Canterbury.
Act leader David Seymour praised the Labour MP today.
"I love Louisa Wall. She's a colourful maverick, the kind of person every Parliament needs."
He said Labour had trouble with Wall.
"I don't understand enough about the Labour Party's internal workings but I think it's a pity that someone who stands up for what she believes in hasn't found a place within Labour's culture."
Seymour said he enjoyed working with Wall at different times and he wished her the best for her future.