Former NSW Labor premier, frontbencher and outgoing senator Kristina Keneally has conceded defeat in the south-west seat of Fowler.
The seat, held by the Labor Party since its creation in 1984, was one it hoped to keep by parachuting in high-profile Senator Keneally.
It will now go to local independent Dai Le, with Labor registering a swing against it of more than 16 per cent.
Senator Keneally took to Twitter to announce her defeat.
"At the end of today, it seems that Labor will not claim victory in Fowler," she said.
"I congratulate Dai Le and wish her well.
"Thank you to the people who voted Labor & the volunteers on our campaign. And congratulations to Albo & Labor — a better future for Australia lies ahead."
Ms Le, the Deputy Mayor of Fairfield, had earlier today said she was quietly confident of winning, attributing her success to her strong ties to the community.
"I think the Fowler community is saying we are going to have our own voice, we are going to stand up, we're going speak for ourselves."
"They [voters] knew Kristina Keneally as a NSW Labor party leader who led them to their most significant loss and the fact she lived in Scotland Island, even though she claims to live in Liverpool," she added.
"A lot of people are telling me they are sick and tired of major parties, and people are telling me Kristina Keneally is not connected to this community — she has no roots here."
Labor deputy leader Richard Marles said Senator Keneally had fought for the people of NSW for her entire political career.
"She [Senator Keneally] was very excited about representing the people of Fowler given the opportunity. We have not conceded it and whatever plays out there, we will work through the lessons of it."
The decision to place her into Fowler to solve an internal party battle over who would get the top spot on Labor's NSW Senate ticket, attracted controversy at the time.
Retiring member Chris Hayes had initially thrown his support behind Vietnamese Australian lawyer Tu Le to represent the diverse electorate.
Mr Hayes later said he accepted the decision of the party and Senator Keneally said he had been supportive since she was endorsed.
"There was certainly a lot of anger out in the seat of Fowler with regards to Tu Le, the Labor candidate who is of Vietnamese background, being overlooked and Kristina parachuted into that seat," said Liberal senator Hollie Hughes on Channel Ten's election night coverage, as results started to swing towards Ms Le.
"I don't think Dai Le would have run had it been Tu Le and I think that's where the anger's come from. Frank Carbone certainly wouldn't have engaged in the way that he has, he's a very popular local mayor."
Labor's Ed Husic, also an MP in Western Sydney, told Channel Ten Ms Le's strong local profile gave her an edge.
"I think in the case of Kristina, Dai Le is a very well-known local candidate so that was a very tough contest," he said.
Ms Le was backed by popular local mayor Mr Carbone, who has appeared on much of her campaign material in a long-standing but unusual political marriage.
In 2016, she was suspended from the Liberal Party for a decade after running as an independent in the Fairfield mayoral race, and Mr Carbone was kicked out of the ALP for doing the same. He was re-elected Mayor in that election.
Prior to that, Ms Le had run for Liberals in the state seat of Cabramatta, reducing Labor's margin to 2.1 per cent at the 2011 election.
Both Ms Le and Mr Carbone are well-known and popular faces around the area, having been prominent voices during the strict Western Sydney Delta lockdown last year.
Her campaign has been centred on the fact she is a local who lived through the harsh lockdown alongside voters.
After a difficult 12 months, some of those who campaigned locally said there was still anger about the inequitable treatment of Western Sydney communities during the lockdown, and the selection of Senator Keneally.
It's understood the Keneally camp felt she had been warmly welcomed by the community, while not taking a win in the seat for granted.
Ms Le came to Australia as a refugee when she was 11, and is a prominent member of the local Vietnamese community. According to the 2016 census, 16 per cent of the community has Vietnamese ancestry.
Despite suspending her from the party, the Liberals preferenced Ms Le on their how- to-vote cards in Fowler.
Their candidate, Courtney Nguyen, campaigned locally, but was largely absent from media coverage of the local race.