Florida Democratic Rep. Debbie Wasserman Schultz on Tuesday survived a tough primary challenge -- defeating a persistent, first-time challenger and the controversy that ended her leadership of the Democratic National Committee.

The Associated Press projected the win for Wasserman Schultz shortly after polls closed.

In the state’s closely-watched Senate primaries, Republican Sen. Marco Rubio and Democratic Rep. Patrick Murphy won their respective Florida Senate primaries -- setting up a high-profile November contest that will help determine whether Democrats can retake control of the Senate.

Wasserman Schultz is expected to win a sixth term in November in the state’s Democratic-leaning 23rd Congressional District.

Her race against law professor Tim Canova gained national attention when Democratic presidential candidate Sen. Bernie Sanders accused Wasserman Schultz, as DNC chairwoman, of rigging the primary for front-running Hillary Clinton.

Sanders later endorsed Canova, which helped him build a sizeable $3.8 million war chest to challenge Wasserman Schultz, who has the support of Clinton and President Obama.

Canova's long-shot bid was further helped by leaked emails last month that suggested Wasserman Schultz and other DNC staffers indeed favored Clinton, which resulted in Wasserman Schultz’s resignation ahead of the Democratic National Convention.

Canova, in the closing weeks, argued that the race was more about local issues than the Sanders factor.

Wasserman Schultz won in part with loyal support from district voters.

Clinton defeated Sanders in the Florida Democratic presidential primary by a roughly 2-to-1 margin.

Rubio defeated four challengers including top-contender Carlos Beruff, a homebuilder. He mounted a last-minute bid for a second Senate term after a failed 2016 White House bid.

Supporters at his party near Walt Disney World whooped and chanted "Marco! Marco! Marco!" when The Associated Press declared him the winner.

In the Democratic primary, the establishment-backed Murphy defeated liberal firebrand Rep. Alan Grayson.

“Patrick will be there every day to work for Floridians, unlike no-show Senator Marco Rubio who earned the worst attendance record of any Florida senator in nearly 50 years and just today couldn't commit to serving a full six-year term,” Tom Lopach, executive director of the Democratic Senatorial Campaign Committee, said after polls closed.

Murphy, who is endorsed by President Obama and Vice President Biden, joined Congress after upsetting Tea Party favorite GOP Rep. Allen West in a 2012 race eventually decided by a partial recount.

RealClearPolitics.com shows Rubio leading Murphy by nearly 6 percentage points in a hypothetical matchup, based on an averaging of recent polls.

Grayson, like Wasserman Schultz, had to run against his own bad press.

In April, the House ethics committee decided to expand its probe into allegations he committed financial improprieties and used congressional staff for campaign purposes.

“I want you to lose,” said Senate Minority Leader Sen. Harry Reid, which resulted in a tense exchange on Capitol Hill between him and Grayson.

Then allegations surfaced last month about Grayson involving domestic abuse, which prompted New York Democratic Sen. Chuck Schumer, next in line for the retiring Reid’s post, to call on Grayson to quit the race.

Grayson, a three-term congressman, and his team have denied the alleged wrongdoing, suggesting the probe is politically motivated, and that the ex-wife who made the abuse allegations is “disturbed.”

The Associated Press contributed to this report.