Democratic presidential candidate Hillary Clinton won unexpected support from chief rival Bernie Sanders on Tuesday for her use of a private email server as U.S. secretary of state, helping to defuse an issue that has overshadowed her campaign.

Echoing comments she has made before, Clinton said her decision to not use a government email address was a mistake, but she emphasized that she wanted to focus her energy on policy issues that were more important to voters.

Sanders came to her aid. "Let me say something that may not be great politics, but I think the secretary is right," he said. "The American people are sick and tired of hearing about your damn emails."

The crowd roared and Clinton beamed.

"Thank you, Bernie," she said, smiling broadly and shaking hands warmly with the U.S. senator from Vermont amid enthusiastic applause.

Sanders' "damn emails" statement was the top social moment of the two-hour debate on Facebook and Sanders himself was the candidate most discussed on the social media network, according to Andy Stone of Facebook.

Shortly after that moment of warmth, Clinton and Sanders clashed over their views about Wall Street, following earlier dust-ups over capitalism, gun control, and U.S. policy on Syria.

Sanders knocked the administration of President Bill Clinton, the front-runner's husband, for its de-regulation of Wall Street in the 1990s.

"Congress does not regulate Wall Street. Wall Street regulates Congress," Sanders said critically.

Clinton said the United States needed to do more than focus its fire on big banks.

"We have work to do. You'll get no argument from me. But I know if we don't come in with a very tough and comprehensive approach, like the plan I'm recommending, we're going to be behind instead of ahead," she said.

Sanders, 74, is polling ahead of Clinton, 67, in the early voting state of New Hampshire and drawing large crowds at campaign events nationwide.

Clinton, who is trying to slow Sanders' momentum, directly attacked him for saying the United States should model its economy after European countries such as Denmark, Sweden and Norway.

"I think what Senator Sanders is saying certainly makes sense in the terms of the inequality that we have. But we are not Denmark. I love Denmark. We're the United States of America," Clinton said.

Sanders, a self-described "democratic socialist," said he did not subscribe to the capitalist system.

"Do I consider myself part of the casino capitalist process by which so few have so much and so many have so little, by which Wall Street's greed and recklessness wrecked this economy? No, I don't," he said.

CLASH OVER GUN CONTROL

The two candidates also clashed over gun violence, an increasingly potent issue in the election after repeated school shootings across the country.

Clinton said Sanders had not been tough enough on the issue and said he had voted against a provision that would have held gun manufacturers more accountable.

Sanders has pushed for what he calls a sensible approach on gun control and voted against the 1993 Brady handgun bill that Bill Clinton signed into law.

Asked to defend himself, Sanders said he supported the expansion of background checks for people wanting to buy guns and to scrap gaps in the law that make it easier to sell and buy guns at gun shows.

The two leading candidates were joined by former Rhode Island Governor Lincoln Chafee, former Maryland Governor Martin O'Malley and former U.S. Senator James Webb of Virginia in the first of six scheduled debates in the race to be the party's nominee in the presidential election.

The lesser known candidates made veiled attacks on Clinton. Chafee noted he had "no scandals" during his political career; Webb said he was not co-opted by the political system.

Clinton's email troubles have hurt her in opinion polls and given fodder to the slate of Republican presidential candidates who would like to be her rival in the November 2016 general election.

She has said her email server in her New York State home was used for convenience and not to skirt transparency laws.

The Federal Bureau of Investigation has taken the server and other computer hardware to determine whether sensitive government information was mishandled in Clinton's email correspondence.

Chafee, who has been critical of Clinton in the context of the emails, said that it was important that the next president adhere to the best in ethical standards.

Asked by the moderator if she wanted to respond, Clinton answered, to applause, with one word: "No."

One person who was not on the stage but loomed in the background of the debate: Vice President Joe Biden, who is considering launching his own run for the nomination.

Clinton took a veiled shot at Biden by emphasizing her involvement in President Barack Obama's decision to authorize the raid that killed former al Qaeda leader Osama bin Laden.

Clinton was in favor of the raid. Biden advised against it.

Near the end of the debate, CNN moderator Anderson Cooper quoted the late U.S. President Franklin Roosevelt as having said, "I ask you to judge me by the enemies I have made."

"You've all made a few people upset over your political careers," Cooper said to the five Democratic hopefuls. "Which enemy are you most proud of?"

"Well, in addition to the NRA (National Rifle Association), the health insurance companies, the drug companies, the Iranians, probably the Republicans," Clinton said.