Democrat Jaime Harrison raised a record-breaking $57 million in the past three months in his bid to unseat Sen. Lindsey O. Graham (R-S.C.), shattering the mark for a Senate candidate.

The single-quarter haul Harrison raised from July through September smashes the $38.1 million then-Rep. Beto O’Rourke raised in the third quarter of 2018 in his unsuccessful bid to oust Sen. Ted Cruz (R-Tex.). At the time, O’Rourke broke the record for the largest-ever quarterly fundraising haul in a Senate race, according to the Center for Responsive Politics.

“This campaign is making history, because we’re focused on restoring hope back to South Carolina,” campaign spokesman Guy King said in a statement.

The race in the Republican-leaning state — President Trump won it by 14 percentage points in 2016 — barely drew attention early in the 2020 election cycle. But Harrison’s prodigious fundraising and barrage of ads have boosted the former state Democratic Party chairman, who is locked in one of the most competitive races in the final weeks before the election.

Harrison has hit Graham for his stark reversal on Trump. The GOP senator often mocked Trump in 2016, called him a “kook” and warned that his party was making a grave mistake in nominating the New York businessman for president. Graham now is Trump’s ally, one of his loudest defenders and frequent golfing partner.

“After 25 years in Washington, Lindsey Graham has changed into someone voters no longer recognize, and these resources will be instrumental in our efforts to send Lindsey home in November,” King said.

Recent polls show a tight race between the incumbent and the former chairman of the South Carolina Democratic Party. A CBS News poll from late last month showed Harrison trailing Graham by one percentage point. A Sept. 30 Quinnipiac poll showed the race tied.

Harrison’s campaign said it received 1.5 million donations averaging $37 during the quarter from 994,000 donors. He has raised $86 million this cycle.

“This movement has beaten fundraising records, polling records, and expectations,” Harrison tweeted. “Let’s bring it home.”

The South Carolina race is crucial to Republican hopes of holding its Senate majority. Graham has warned about electing Harrison and giving Democrats control next year, especially if Joe Biden wins the presidency.

“The parade of horribles that come if we lose the House, the Senate and the White House is unbelievable,” Graham said in an interview Sunday on Fox News’s “Sunday Morning Futures.”

Graham ticked off a list of “horribles” from all-Democratic control — increasing the number of Supreme Court justices, making the District of Columbia a state and “they’re going to abolish the Electoral College, which means New York and California pick our president. They’re going to change America.”

The three-term senator was not asked about Harrison’s fundraising.

Graham has been pleading for financial help for his most challenging campaign for Senate yet. In his three previous races, the 65-year-old won by double digits.

In a pair of interviews in one day last month, Graham made an appeal to Fox News viewers. “I’m getting overwhelmed,” he told prime-time host Sean Hannity, adding: “Help me. They’re killing me moneywise. Help me. You did last week. Help me again.”

Graham also said in an interview on “Fox & Friends”: “I’m being killed financially."

“While Lindsey O. Graham continues playing political games in Washington, Jaime Harrison is remaining laser-focused on the real issues impacting people here — like healthcare, broadband access, and COVID relief for businesses and families,” King said.

Republicans recently diverted about $10 million to defend the Trump ally in a state the president won by more than 14 percent in 2016. Graham has not yet released his third-quarter fundraising. Candidates must submit a report to the Federal Election Commission detailing third-quarter fundraising by Oct. 15.

The fundraising announcement from Harrison, 44, comes one day before Graham launches confirmation hearings for Supreme Court nominee Amy Coney Barrett as the chairman of the Senate Judiciary Committee.