Harvard law professor Alan Dershowitz said Friday that any Democrat who meets with the "bigot" Louis Farrakhan should resign from office, and said there should be no tolerance for any association with the Nation of Islam leader.

"Farrakhan is a bigot," Dershowitz said on Fox News. "He is far worse than David Duke. Why? Because Farrakhan has a large following, David Duke is a joke."

"He ought to be treated the way we treat David Duke," he said. "If any Republican dared to meet with David Duke, that would be the end of their career."

"It should be the end of the career of any Democrat who has any association with this bigot Farrakhan," Dershowitz added.

Keith Ellison, the No. 2 Democrat at the Democratic National Committee, had said he stopped meeting with Farrakhan before 2006, but it was later confirmed he was at a private meeting with Farrakhan in 2015.

Washington Post gave Ellison four Pinnochios for lying when he said his relationship with Farrakhan ended more than a decade ago.

"This is the leadership of the Democratic Party," Dershowitz said.

Rep. Andre Carson, D-Ind., has also said he met with Farrakhan and might do so again.

Dershowitz said Farrakhan remains popular among black Democrats because he's helped blacks around the country. But he said that's no excuse for supporting him.

"Look, Hitler helped the communities in Germany as well. He ended unemployment, he helped inflation," Dershowitz said.

"Stalin, the same thing. Every bigot can claim to do some good," he said.