Republican candidate for Florida governor Ron DeSantis speaks to supporters during a rally Sept. 6 in Orlando. (John Raoux/AP)

Rep. Ron DeSantis, a conservative Republican running for governor of Florida, has resigned from the House to focus on his campaign, he told House Speaker Paul D. Ryan in a letter delivered Monday.

DeSantis, 39, has represented Florida’s 6th Congressional District since 2013. He faces Democrat Andrew Gillum, the mayor of Tallahassee, in a closely watched matchup this November.

“As the Republican nominee for Governor of Florida, it is clear to me that I will likely miss the vast majority of our remaining session days for this Congress,” DeSantis wrote. “Under these circumstances, it would be inappropriate for me to accept a salary. In order to honor my principles and protect the taxpayer, I officially resign from the House of Representatives effective immediately.”

Addressing a campaign event at Miami’s Little Havana neighborhood Monday night, DeSantis did not mention his decision to resign from the House, but he said it’s a challenge to raise two children under the age of 2 while campaigning.

Speaking to reporters later, he said he decided to leave the House because he didn’t want to be criticized for missing votes in Washington.

“I took an honest look at it and said, ‘Look, if I am going to be missing 70 to 80 percent of the votes before the election . . . can I take a paycheck if I am not really doing it?” he said.

DeSantis has missed 43 of 80 House votes cast since July — including all 14 votes cast last week — according to a database maintained by GovTrack. In the letter, DeSantis asked that his resignation be made retroactive to Sept. 1 for payroll purposes.

“This is not a decision I make lightly,” he wrote. “It has been an honor to serve the people of Florida’s Sixth Congressional District, and I look forward to serving them and the rest of Florida as our state’s next Governor.”

A member of the hard-right House Freedom Caucus, DeSantis has emerged as one of President Trump’s most aggressive defenders on Capitol Hill and has been a critic of the Justice Department and special-counsel investigations into Trump.

DeSantis’s announcement comes as Gillum, who has received an influx of support from national Democratic groups, has opened up an early fundraising lead for the general election.

According to Florida campaign finance reports filed Friday, Gillum has raised $4 million since winning the Democratic nomination Aug. 28. DeSantis raised $516,000 during the same period.

DeSantis also has been hobbled by questions about his racial sensitivity and past association with a far-right activist who has expressed controversial views about race. Last week, DeSantis scrambled to contain outrage from Florida voters after he urged the state not to “monkey this up” by electing Gillum, who is African American and whom DeSantis accused of being a socialist.

On Sunday, The Washington Post reported that DeSantis had spoken four times since 2013 at a conference organized by David Horowitz, a conservative firebrand who has stated that African Americans owe their freedom to white people and that the country’s “only serious race war” is against whites.

On Monday, several Florida-based liberal and racial justice groups called on DeSantis to withdraw from the governor’s race.

“As his true colors keep getting clearer, the real question is how can anyone continue to stand with DeSantis,” said Dwight Bullard, political director of the left-leaning New Florida Majority, which aims to diversify Florida’s political ranks.

Gillum called DeSantis’s speeches “deeply troubling.” Gillum’s running mate, Chris King, issued a statement saying DeSantis has “serious questions to answer to Floridians about why he repeatedly chose to attend these events.”

Responding to pointed questions Monday night from Miami reporters who asked if he’s a “racist,” DeSantis said he “totally rejects” white supremacy but also defended his appearance at Horowitz’s events.

“I have zero interest in elevating or just discriminating against race. It’s wrong,” DeSantis said, but declined to say it was a mistake to speak at the Horowitz-organized conferences. “At the end of the day, my speech stands for itself,” he said.

At the Little Havana campaign event, De Santis was joined by his running mate, Florida state Rep. Jeanette Nuñez, and Sen. Marco Rubio (R-Fla.). Nuñez is Cuban American, a demographic that makes up a pivotal Florida voting bloc.

DeSantis was one of six sitting House members seeking governor’s seats across the country. Gubernatorial candidates remaining in the House are fellow Republicans Kristi L. Noem of South Dakota and Stevan Pearce of New Mexico, as well as Democrats Tim Walz of Minnesota, Jared Polis of Colorado and Michelle Lujan Grisham of New Mexico. No other House members have resigned while running for a higher office this year.

DeBonis reported from Washington.