A Democratic member of the state House of Representatives who just won his primary for state Senate announced Friday that he is resigning, leaving no one on the ballot in his southwest Phoenix district.

Diego Espinoza defeated a fellow House member Richard Andrade in the August primary for District 22's Senate seat. The heavily Democratic district covers parts of Glendale, Phoenix, Avondale and Tolleson and drew no Republicans.

Espinoza said he has accepted a job with the Salt River Project in community and government relations. He owns a restaurant in Tolleson and has served four terms in the House.

The unexpected resignation means a write-in candidacy is the only option for filling the seat through the election.

WEEKS FROM MIDTERM ELECTIONS, BIDEN HAS ENDORSED JUST THREE DEMOCRATS WHILE CALLING GOP ‘THREAT’ TO DEMOCRACY

Diego Espinoza

Rep. Lorenzo Sierra, D-Avondale, right, borrows a microphone from Rep. Diego Espinoza, D-Tolleson, prior to a vote on the Arizona budget at the Arizona Capitol June 24, 2021, in Phoenix.  (AP Photo/Ross D. Franklin, File)

Andrade said he had heard during the primary that Espinoza was considering taking the job and said he was "very disappointed" to hear he had quit.

"He wasn't true to the voters, knowing that he was going to do this," Andrade said. "It shows this isn't the type of leadership we need, where you deceived the voters into thinking you're working for your community when, in reality, you're working for your self-interest."

TOP GOP SENATE SUPER PAC SPENDING $23 MILLION TO TARGET HASSAN IN BATTLEGROUND NEW HAMPSHIRE

Andrade said he is considering his options and has not decided if he will mount a write-in campaign.

VULNERABLE DEMOCRATS AVOID BIDEN'S ANTI-MAGA SPEECH, TRUMP-BACKED CANDIDATES FIRE BACK AT DIVISIVE REMARKS

Although the legislature is not in session, the Maricopa County Board of Supervisors will name a temporary replacement who will serve the remainder of Espinoza's term, which ends in early January, when the new legislature is sworn in. 

Arizona capitol

Built in 1900, the Arizona State Capitol was created to demonstrate that the Arizona Territory was ready for statehood.   (Douglas Sacha via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

By law, that replacement must be a Democrat.

Before running for his House seat, Espinoza served 14 years on the Tolleson City Council. Andrade is a locomotive engineer.

Both were first elected in 2014 and were forced by term limits to leave the House.