Updated at 2:28 p.m. after AP calls the race.
A week after the election, Republican Beth Van Duyne has been declared the winner in the Congressional race for the District 24 seat.
Democrat Candace Valenzuela congratulated her opponent Tuesday morning after The Texas Tribune reported Van Duyne had won.
The Associated Press called the race for Van Duyne Tuesday afternoon.
After the race was called Van Duyne tweeted, "Another day, another recognition that we’ve won this race!"
The race to replace the retiring Republican incumbent remained too close to call in the days after the election while Tarrant County elections officials were still counting ballots.
"Now that nearly all the votes have been counted and there is no longer a path, we are conceding," Valenzuela tweeted Tuesday. "I want to congratulate Beth Van Duyne on her victory."
Valenzuela hoped to become the first Black Latina in Congress.
The district, which includes Carrollton, Coppell, Irving, Southlake and the DFW Airport, was once solidly red but has been more competitive for Democrats in recent years.
U.S. Rep. Kenny Marchant narrowly kept his seat during the 2018 election.
In 2014, Marchant won by 33 percentage points. In 2016, the margin narrowed to 17 percentage points. By 2018, that gap narrowed to 3 percentage points.
Democrats believed the seat could be flipped. Valenzuela lost by about 4,600 votes.
Van Duyne, a former mayor of Irving, ran on a conservative platform to curb illegal immigration and combat what she says is a rise in socialism.
On election night, Van Duyne claimed victory when voting tallies showed she was ahead, but the Valenzuela campaign said it was too soon.
Van Duyne released a statement Tuesday after Valenzuela conceded the race, saying it was a "hard-fought election."
"My pledge to the people of the 24th District is that no matter whom you supported in this election, I will work tirelessly for you and your family to expand job opportunities, deliver sustainable growth for our region and empower all of our citizens with a stronger, brighter future," Van Duyne said.