President Trump traveled to North Carolina Monday to show support for the Republican in a special election for a House seat that’s viewed as a toss-up.

“North Carolina, vote for Dan Bishop tomorrow. We need him badly in Washington! His opponent is a far left Sanctuary Cities supporter,” Trump tweeted about the GOP candidate, who will face Democrat Dan McCready at the polls Tuesday.

Bishop, 55, a state senator since 2017, is a conservative and critic of LGBTQ rights who once compared gay rights activists to the Taliban, and spearheaded North Carolina’s so-called “bathroom bill,” which banned transgender people from using public restrooms other than those designated for their biological sex as defined on their birth certificates.

It was subsequently overruled by a federal judge in Asheville in a ruling affirmed by the Supreme Court — but not before costing the state millions in canceled business events.

Bishop also is a staunch Trump supporter.

McCready, 36, served in the Marines, leaving in 2009 with the rank of captain.

He vowed to protect Social Security and Medicare, cut taxes on the middle class, end gerrymandering, renegotiate trade deals and reduce military intervention overseas.

Trump dismissed questions of whether a poor result for the Republican candidate would serve as a warning sign in next year’s ­elections.

“No, I don’t see it as a bellwether,” he said.

Allegations of ballot fraud caused the state’s Board of Elections to order a new contest in the district after the final vote on Election Day last year found Republican Mark Harris ahead of McCready by fewer than 1,000 votes.

Harris chose not to run again in the special election, so McCready will face Bishop.

The seat has been held by the GOP since 1963, and in 2016, Trump won the district by 11 percentage points.

The president had also planned to tour a neighborhood damaged by Hurricane Dorian, but foul weather forced the White House to cancel the tour.

Also Monday, Trump said that peace talks with the Taliban in Afghanistan were “dead” after collapsing last week.

“They’re dead. They’re dead. As far as I’m concerned, they’re dead,” Trump said.

He also defended his decision to invite the terrorist group’s leaders to Camp David.

“Camp David’s held meetings with a lot of people who would be perceived as pretty tough customers. The alternative was the White House, but you wouldn’t have liked that either,” he said.

With Wires