The Republican senator for Mississippi has been re-elected following a bitterly divisive runoff which evoked the state’s history of racist violence.

Cindy Hyde-Smith survived the controversy caused by her racially charged comments to defeat Democrat Mike Espy, who had hoped to become the state’s first African-American senator for more than 130 years.

Ms Hyde-Smith, first appointed to the seat in April, had initially been comfortable favourite to win the race until footage emerged of her saying about a supporter at an 11 November rally: “If he invited me to a public hanging, I’d be on the front row.”

The comment provoked anger in a state where hundreds of people black people were lynched between the American Civil War and 1968.

Ms Hyde-Smith said the remark had been “an exaggerated expression of regard” for a fellow cattle rancher. During a televised debate nine days after the video was publicised, she apologised to “anyone that was offended by my comments” but also claimed the remark was being used as a “weapon” against her.

The Republican prompted further controversy when she was caught on video saying it was “a great idea” to make it harder for “liberal folks” to vote, a remark she later dismissed as a joke.

Moment Republican senator says it's a 'great idea' to make it harder 'for liberal folks to vote'

Some corporate donors, including Walmart, requested refunds on their campaign contributions to Ms Hyde-Smith after the controversial videos surfaced.

Bubbling racial tensions burst to the fore this week when nooses were found hanging on trees in Mississippi. They were accompanied by signs reading: “We’re hanging nooses to remind people that times haven’t changed.”

Speaking after her win, Ms Hyde-Smith insisted she would fight for everyone in the state when she goes to Washington.

The 59-year-old told supporters: “I want everybody to know, no matter who you voted for today, I’m going to always represent every Mississippian. I will work very hard and do my very best to make Mississippi very proud.”

US midterm results: more diverse, more female and more progressive Show all 20 1 /20 US midterm results: more diverse, more female and more progressive US midterm results: more diverse, more female and more progressive Democratic candidate Ilhan Omar is celebrates with her husband's mother after she won a congress place, becoming the first Muslim woman to be elected into congress alongside Rashida Tlaib Reuters US midterm results: more diverse, more female and more progressive Democratic House candidate, from Kansas, Sharice Davids (left) and her mom Crystal celebrate after she won. Davids is the first lesbian Native American Congresswoman by beating Republican incumbent Kevin Yoder. Davids is one of several first-time female candidates that helped the Democratic Party takeover in the House of Representatives EPA US midterm results: more diverse, more female and more progressive Republican Marsha Blackburn celebrates after winning the race for senate in Tennessee. In doing so she became that state’s first female senator AP US midterm results: more diverse, more female and more progressive Supporters of Democratic House candidate Sharice Davids cheer and cry after learning she won EPA US midterm results: more diverse, more female and more progressive Ayanna Pressley beaome Massachusetts’ first black congresswoman by defeating 10-term Republican Michael Capuano AFP/Getty US midterm results: more diverse, more female and more progressive Republican candidate Young Kim has become the first Korean-American woman elected to Congress AP US midterm results: more diverse, more female and more progressive Democrat Jared Polis won his seat and became the US’s first ever openly gay governor AAron Ontiveroz/The Denver Post via AP US midterm results: more diverse, more female and more progressive Jean Kasselman (left) and Teresa Booker, supporters of Democratic candidate for Kansas' 3rd Congressional District Sharice Davids, react to election results Getty US midterm results: more diverse, more female and more progressive Republican Kristi Noem hugs a supporter after being announced as the new governor of South Dakota. Noem made history by being the first female governor of the state AP US midterm results: more diverse, more female and more progressive Gabierla Martinez and Cesar Delgado cheer on Democratic gubernatorial candidate Jared Polis REUTERS US midterm results: more diverse, more female and more progressive Alexandria Ocasio-Cortez became the youngest women ever elected to Congress, representing New York’s 14th congressional district AFP/Getty US midterm results: more diverse, more female and more progressive Democratic congressional candidate Rashida Tlaib celebrates with family and friends at her midterm election night party in Detroit after won and also became the nation’s first Muslim woman to congress alongside Ilhan Omar who was also elected Reuters US midterm results: more diverse, more female and more progressive Supporters of Democratic candidate for Kansas' 3rd Congressional District Sharice Davids react to election results Getty US midterm results: more diverse, more female and more progressive Already having become the first Native American woman to chair a state political party, Deb Haaland has now become the joint-first Native American woman to be elected to congress, alongside Sharice Davids Reuters US midterm results: more diverse, more female and more progressive Supporters of Alexandria Ocasio-Cortez cheer during her election night party in the Queens Borough AFP/Getty US midterm results: more diverse, more female and more progressive Young Kim hugs her son Alvin after she won a seat in congress AP US midterm results: more diverse, more female and more progressive Supporters of Alexandria Ocasio-Cortez cheer AFP/Getty Images US midterm results: more diverse, more female and more progressive Asma Mohammed and Ashley Fairbanks celebrate as results come in at Democratic congressional candidate Ilhan Omar's election night headquarters AP US midterm results: more diverse, more female and more progressive Democrat Deb Haaland hugs a voter REUTERS US midterm results: more diverse, more female and more progressive Supporters of Democratic House candidate from Kansas Sharice Davids cheer and cry after learning she won her race EPA

Shortly after the win on Tuesday, Donald Trump tweeted: “Congratulations to Senator Cindy Hyde-Smith on your big WIN in the Great State of Mississippi. We are all very proud of you!”

The Republican inherited the seat in April after long-time predecessor Thad Cochran retired amid health concerns. Ms Hyde-Smith’s election makes her the first woman to be voted into the Senate in Mississippi.

Addressing his supporters following his defeat, Mr Espy, 64, said: “While this is not the result we were hoping for, I am proud of the historic campaign we ran and grateful for the support we received across Mississippi. We built the largest grassroots organisation our state has seen in a generation.”