See the results of the Texas 2018 midterm election here

On Nov. 6., Texas voters decided who will represent the state in the first national election of the Donald Trump era. Democratic U.S. Rep. Beto O’Rourke fell to Republican incumbent Ted Cruz in a U.S. Senate race that has garnered national attention. Meanwhile, Democrats picked up two U.S. House seats. See the results in statewide races for governor and more, including dozens of Texas Legislative seats and judicial positions.

U.S. Senate

This election is for one of Texas’ two seats in the U.S. Senate. Cruz has held the position for one term after he won the seat in 2012.

It was by far the most competitive statewide race this cycle — and the most closely watched beyond Texas. O’Rourke, a member of Congress from El Paso, ran a massively funded campaign against Cruz, traveling the state relentlessly in hopes of becoming the first Democrat to win statewide office in Texas in more than two decades.

Cruz, meanwhile, attacked O’Rourke for being too liberal for Texas while warning the GOP base not to underestimate intense Democratic enthusiasm.

Governor

The governor is the chief executive of Texas. The seat hasn’t been held by a Democrat since 1995. Typically a blockbuster attraction, the governor’s race this year was a snoozer, unfolding in the shadow of the nationally watched U.S. Senate race.

Valdez, the former sheriff of Dallas County, ran as a scrappy champion of the working class, while Abbott, coming out of his first term, mostly ignored her as he boasted of how the quality of life in Texas has progressed under his leadership.

Abbott also used his massive political operation and fundraising haul to help down-ballot candidates who are in much more competitive races than he is.

Lieutenant Governor

The lieutenant governor, the second-highest executive in the state, presides over the state Senate and heavily influences the state budget.

Patrick is the favorite to keep his seat. To win, Collier is relying heavily on Democratic enthusiasm and hoping to siphon off Republican support from Patrick, who drew 76 percent of the vote in March against a more moderate primary challenger. Collier is particularly focused on courting working and retired teachers.

Land Commissioner

The land commissioner manages mineral rights for public lands in Texas and also distributes Hurricane Harvey relief money.

Since Bush took office for his first term in 2015, the General Land Office has overhauled how it manages the Alamo. His Democratic challenger, Suazo, is an energy attorney.

Agriculture Commissioner

Much of the race for Texas Agriculture Commissioner centers on food — whether immigrants should be able to help harvest it, how crops are traded or what items schools can serve students for lunch.

Miller has received several high-profile endorsements, but his first term has been riddled with controversies. Olson served in the Air Force for 25 years and was one of the military branch's first female pilots. But the circumstances of her retirement from the military — she was accused by the Pentagon of steering government contracts to a private security firm — has become a campaign issue.

While every statewide Democrat faces an uphill battle this year, experts from both parties say that Olson stands one the best chances of pulling off an upset thanks to Miller's many missteps, which have incited the ire of even staunchly conservative groups that otherwise share his political beliefs.

Attorney General

The Attorney General is the top lawyer in Texas, representing the state in civil litigation.

Most of Paxton’s first term has been clouded by his indictment three years ago in a securities fraud case. Nelson has seized on it to portray the race as “integrity vs. indictment.”

Despite those legal troubles, Paxton has still managed to emerge as one of President Donald Trump’s closest allies among attorneys general. He has led the charge to dismantle the Affordable Care Act.

Comptroller

The Comptroller is the state official responsible for collecting taxes, overseeing the state treasury and forecasting the amount of money that’s available for the state’s two-year budget.

Hegar, a former state senator, has held the position for one four-year term.

Railroad Commissioner

The Texas Railroad Commission regulates the state’s booming oil and gas industry. Past efforts to give the 127-year-old agency a more relevant moniker have failed, even though it hasn’t had total oversight of railroads for decades.

Craddick is seeking a second, six-year term. The Midland native faces challenges from McAllen, an architect and urban planner who works as the historic preservation officer for the city of Denton, and Wright, a Vietnam veteran and graduate of the United States Military Academy and Harvard Business School who spent a decade working in the oil equipment manufacturing industry. Both of Craddick’s challengers are considered longshots.

Texas Supreme Court

The Texas Supreme Court, which handles civil matters, has nine justices. Three positions are up for election this year. Judges run for office as partisans, and no Democrat has been elected to the court since 1994.

Texas Court of Criminal Appeals

The Texas Court of Criminal Appeals has nine justices, and three positions are on this year’s ballot. Judges run for office as partisans, and no Democrat has been elected to the court since 1994.

U.S. House

Texas sends 36 representatives to the U.S. House, the second most of any state. Each representative serves a two-year term.

Texas Senate

One-half of the 31 members of the Texas State Senate are up for reelection this year. They serve four-year terms.

Texas House

There are 150 members of the Texas State House. Each serves a two-year term.

State Board of Education

Seven of the 15 board members are up for reelection this year, but only five of those races are contested. Board members serve four-year terms.

About the data

Live election results data provided by the Texas Secretary of State.

Candidate information from the Texas Secretary of State, Texas Democratic Party, the Republican Party of Texas, the Libertarian Party of Texas and Texas Tribune research.

County shapes and city locations provided by the U.S. Census Bureau. Road lines provided by Natural Earth.

By Ryan Murphy, Darla Cameron, Chris Essig, Elbert Wang and Aman Batheja.