JACKSON, Miss. (AP) — Republican U.S. Sen. Cindy Hyde-Smith won a divisive Mississippi runoff Tuesday, surviving a video-recorded remark decried as racist and defeating a former federal official who hoped to become the state's first African-American senator since Reconstruction.

The runoff was rocked by the video, in which Hyde-Smith said of a supporter, "If he invited me to a public hanging, I'd be on the front row." A separate video showed her talking about "liberal folks" and making it "just a little more difficult" for them to vote.

The comments by Hyde-Smith, who is white, made Mississippi's history of racist lynchings a theme of the runoff and spurred many black voters to return to the polls Tuesday.

In the aftermath of the video, Republicans worried they could face a repeat of last year's special election in Alabama, in which a flawed Republican candidate handed Democrats a reliable GOP Senate seat in the Deep South. The GOP pumped resources into Mississippi, and President Donald Trump made a strong effort on behalf of Hyde-Smith, holding last-minute rallies in Mississippi on Monday.

The contest caps a campaign season that exposed persistent racial divisions in America — and the willingness of some political candidates to exploit them to win elections. With Hyde-Smith's victory, Republicans control 53 of the Senate's 100 seats. The GOP lost control of the House, where Democrats will assume the majority in January.

In the final weeks of the runoff, Hyde-Smith's campaign said the remark about making voting difficult was a joke. She said the "public hanging" comment was "an exaggerated expression of regard" for a fellow cattle rancher. During a televised debate nine days after the video was publicized, she apologized to "anyone that was offended by my comments," but also said the remark was used as a "weapon" against her.

Democratic opponent Mike Espy, 64, a former U.S. agriculture secretary, replied: "I don't know what's in your heart, but I know what came out of your mouth."

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

Hyde-Smith was in her second term as Mississippi agriculture commissioner when Republican Gov. Phil Bryant appointed her to temporarily succeed GOP Sen. Thad Cochran. The longtime lawmaker retired in April amid health concerns.

The win makes Hyde-Smith, 59, the first woman elected to Congress from Mississippi.

Hyde-Smith and Espy emerged from a field of four candidates Nov. 6 to advance to Tuesday's runoff. Her win allows her to complete the final two years of Cochran's six-year term.

____

Associated Press writers Jeff Amy and Janet McConnaughey contributed to this report.

____

For AP's complete coverage of the U.S. midterm elections: http://apne.ws/APPolitics . Follow Emily Wagster Pettus on Twitter: http://twitter.com/EWagsterPettus .

Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.