Beto O'Rourke
Beto O'Rourke lost to Ted Cruz on Tuesday for Texas governor. Pictured, O'Rourke (D-TX) concedes the race while addressing a "thank you" party on Election Day at Southwest University Park El Paso, Texas, Nov. 6, 2018. Getty Images/Chip Somodevilla

Republican Sen. Ted Cruz of Texas won re-election Tuesday night, beating Democrat Beto O'Rourke.

In the early hours of the poll, O'Rourke was running neck and neck with Cruz, but the latter managed to emerge victorious. Cruz got 51 percent (4,162,311) votes while O'Rourke received 48.2 percent votes (3,934,279) of the total 8,163,510 votes (94 percent) reporting, that is, 7,450 of 7,949 precincts, according to data provided by the New York Times.

O'Rourke gave an emotional concession speech to screaming supporters in his hometown and said, “El Paso, I love you so much. I am so proud of you in the city and community and what you mean to the rest of the country. And what you have achieved tonight, along with so many other amazing people across the state.”

Midway through his passionate speech, he dropped the f-word, which was captured by some networks that carried his speech live.

“I want to thank this amazing campaign of people. Not a dime from a single PAC. All of you showing the country how to do this,” he said. “I am so f****** proud of you guys.”

The Daily Mail reported MSNBC was airing his speech live when the word was used. “Sorry for the F-bomb,” anchor Brian Williams said right after. “We have no control of what's in the concession speeches.”

Cruz led the polls mostly all the way till the elections, but O'Rourke gave him a tight challenge. In the last six weeks, he held about 50 rallies and even brought in his former rival for the 2016 presidential nomination, Donald Trump.

O'Rourke is a two-term Congressman from the Texas-Mexico border. He made extensive use of social media throughout his campaign. According to the Daily Mail, O'Rouke was named as a possible 2020 presidential candidate, which he denied having an interest in.

“I was inspired and I am as hopeful as I have ever been in my life. Tonight’s loss does nothing to diminish the way I feel about Texas or this country,” O'Rourke said in his concession speech. “I have now had the opportunity to talk with Sen. Cruz and congratulate him on his victory and wish him well going forward.” He said he was willing to work with the Senator “to ensure that Texas helps lead the country in a way that brings us back together around big things we want to achieve … I want to work with him.”

“Tonight is a victory for the people of Texas,” Cruz said in his victory speech. “This election was a battle of ideas ... The people of Texas rendered a verdict that we want a future with more jobs, and more security, and more freedom.”

“[Beto O'Rourke] poured his heart into this campaign. Millions across this state were inspired by his campaign,” he said. “They didn't prevail and I am grateful the people of Texas chose a different path. I am your senator as well. My responsibility is to represent every Texan.”