State Rep. Craig Goldman secured the Republican nomination for the open 12th Congressional District in Texas in a runoff Tuesday, a seat opening up due to the retirement of Rep. Kay Granger, according to the Associated Press.

Goldman won in a runoff after neither candidate received more than 50% of the vote in the March primary. Granger has held the seat since 1997 but is retiring at the end of the term. 

The race had been a demonstration of the split in the state’s Republican Party. O’Shea had framed himself an "America First" candidate and had touted the backing of Attorney General Ken Paxton and Trump allies, including Roger Stone and Gen. Michael Flynn.

TEXAS REPUBLICAN PRIMARY RUNOFFS FEATURE POLITICAL REVENGE, TRUMP AS KEY FACTORS

Greg Abbott

Texas Gov. Greg Abbott makes an announcement on the future of the space industry in Texas at NASA's Johnson Space Center in Houston March 26, 2024.  (Suzanne Cordeiro/AFP via Getty Images)

"It is an honor to support John O’Shea for Texas’ 12th. John is a friend who I have found to be a dedicated husband and father who will put family, faith and country first," Paxton said in a statement backing the candidate. 

O'Shea argued the U.S. "has a number of higher priority issues that must be addressed to ensure our citizens are taken care of before focusing on other global matters."

Goldman, a fifth-generation Texan, meanwhile, had the endorsement of Gov. Greg Abbott and Speaker Dade Phelan, and had voted to impeach Paxton in 2023.  He had promised to be a "conservative fighter who will prioritize border security and the American taxpayer."

CONTROVERSIAL MOVE: ABBOTT PARDONS ARMY SERGEANT WHO KILLED BLM PROTESTER

Goldman OShea

This split shows state Rep. Craig Goldman, left, and businessman John O'Shea, right. (Craig Goldman for Congress I John O'Shea for U.S. Congress)

O’Shea had used that vote for Paxton's impeachment to hit his opponent. 

"There is a civil war in the party in the state of Texas," O’Shea said in April, according to the Texas Tribune. "I like to characterize it as the America First-Paxton side, and then there’s the establishment team Phelan side. You have a candidate who represents each one of those two sides. The choice is clear. Now, you have a chance to choose."

Goldman has pushed back against claims he is less conservative than O’Shea, arguing he had a proven conservative voting record.

"That’s the difference between John and I," Goldman said at an April debate, according to KERA News.

Ken Paxton in front of Supreme Court

Texas Attorney General Ken Paxton speaks outside the U.S. Supreme Court Nov. 1, 2021, in Washington, D.C. (Drew Angerer/Getty Images)

The winner of the Republican primary runoff will face Trey Hunt, a progressive activist and mental health professional who has been outspoken on homeless issues. Hunt, whose campaign website says he was "born and raised in Southwest Fort Worth," is running to push for "reform in the criminal justice system," "guaranteeing abortion rights" for women and other issues.

HEAD HERE FOR THE LATEST FOX NEWS 2024 PRIMARY ELECTION RESULTS

Both Republican candidates have emphasized their stances on tackling illegal immigration in a state that has been on the frontline of the ongoing migrant crisis at the southern border. They have both also highlighted their positions on abortion and Second Amendment rights.

It’s one of a number of races in which Abbott and Paxton have chosen opposing candidates. They have done so in five separate races. Both lawmakers have scores to settle, with Paxton targeting those Republicans who voted to impeach him last year on corruption charges and Abbott eyeing those who defeated his 2023 education plan. The school voucher measure, which was Abbott's top legislative item last year, passed the state Senate, but its defeat in the state House was a rare political setback for Abbott.

"It’s a power play and definitely a battle for the heart and soul of the Republican Party of Texas, and Gov. Abbott wants to get legislators in there who will support his agenda," veteran Texas-based Republican strategist Brendan Steinhauser told Fox News.

CLICK HERE TO GET THE FOX NEWS APP 

Kay Granger

Rep. Kay Granger, R-Texas, leaves the House Republicans' caucus meeting at the Capitol Hill Club in Washington May 10, 2023. (Bill Clark/CQ-Roll Call, Inc via Getty Images)

Granger had backed Goldman for the seat, touting his credentials as a "staunch advocate for a strong national defense."

Phelan faces his own challenge in District 21 from oil and gas consultant David Covey. Phelan oversaw the impeachment effort against Paxton. He was later censured by the Texas GOP for the effort. 

Fox News' Paul Steinhauser and the Associated Press contributed to this report. 

Get the latest updates from the 2024 campaign trail, exclusive interviews and more at our Fox News Digital election hub.