PHILADELPHIA — Democrats arrived at their nominating convention on Sunday under a cloud of discord as Debbie Wasserman Schultz, the chairwoman of the Democratic National Committee, abruptly said she was resigning that position after a trove of leaked emails showed the party conspiring to sabotage the campaign of Senator Bernie Sanders of Vermont.
The revelation, along with sizable pro-Sanders protests in the streets to greet arriving delegates, threatened to undermine the delicate healing process that followed the contentious fight between Mr. Sanders and Hillary Clinton. And they raised the prospect that a convention that was intended to showcase the Democratic Party’s optimism and unity, in contrast to the Republicans, could be marred by dissension and disorder.
Despite those concerns, Democrats are hoping that focusing on Donald J. Trump, the Republican nominee, will galvanize the party to rally around Mrs. Clinton, and on Sunday those efforts received a major boost when Michael R. Bloomberg, the former Republican mayor of New York, said he would endorse her.
In her resignation statement, Ms. Wasserman Schultz, a Florida congresswoman, said she would continue to fight for Mrs. Clinton from the sidelines.
“I know that electing Hillary Clinton as our next president is critical for America’s future,” Ms. Wasserman Schultz said in a statement. “I look forward to serving as a surrogate for her campaign in Florida and across the country to ensure her victory.”
She added: “Going forward, the best way for me to accomplish those goals is to step down as Party Chair at the end of this convention.”
Donna Brazile, the Democratic National Committee said, will be the interim chairwoman through the election.
Ms. Wasserman Schultz has faced a flurry of negative stories during her five-year tenure as the committee’s chairwoman, with critics charging that she was more focused on promoting her own career than on the party, but she has until now resisted calls for her to quit.
Ms. Wasserman Schultz announced her resignation after a private meeting with advisers and senior aides to Mrs. Clinton at a hotel here a day before the party’s convention was set to begin. She had faced growing calls for her resignation over the weekend.
The breach of the Democratic committee’s emails, made public on Friday by WikiLeaks, offered undeniable evidence of what Mr. Sanders’s supporters had complained about for much of the senator’s contentious primary with Mrs. Clinton: that the party was effectively an arm of Mrs. Clinton’s campaign. The messages showed members of the committee’s communications team musing about pushing the narrative that the Sanders campaign was inept and trying to raise questions publicly about whether he was an atheist.
Mr. Sanders said the situation was an “outrage” on Sunday before the resignation was announced, and called for her to step down. Afterward, he thanked her for her service and said it was the right decision.
“The party leadership must also always remain impartial in the presidential nominating process, something which did not occur in the 2016 race,” Mr. Sanders said in a statement.
Mrs. Clinton’s campaign aides ignored questions as they quickly left the hotel a few minutes after the resignation was announced. Ms. Brazile emerged soon after the Clinton aides had left and said in a brief interview that Ms. Wasserman Schultz called her Sunday afternoon and asked her to come to the hotel where the Florida delegation is staying.
“Debbie Wasserman Schultz is my friend and my colleague, and I’m going to give her a hug,” Ms. Brazile said.
Convention organizers had expressed nervousness on Sunday about the specter of Ms. Wasserman Schultz appearing on stage at all during the four-day convention. They were worried that what they intend to be a well-choreographed event, which officials hoped would contrast with the at times chaotic Republican convention, could be marred by Mr. Sanders’s backers booing and heckling her.
Ms. Wasserman Schultz recognized the magnitude of the problem on Saturday and initially planned to offer an apology, one of her advisers said. But it became clear to her on Sunday that contrition was insufficient.
Mrs. Clinton’s campaign handled the situation delicately, not wanting the chairwoman to feel intense pressure and dig in. The Clinton aides told Ms. Wasserman Schultz the choice to resign was hers to make, but they gently warned her that she would face jeers from Mr. Sanders’s supporters in the convention hall this week, said the adviser to Ms. Wasserman Schultz, who requested anonymity to discuss private deliberations.
The nudge was enough to force Ms. Wasserman Schultz’s hand.
The Clinton campaign also suggested on Sunday that Russia was responsible for the leak as part of an effort help Mr. Trump, who has been flattering toward President Vladimir V. Putin.
The convention will feature a host of prominent attendees and Monday will be headlined by speeches by Mr. Sanders and Michelle Obama, the first lady. President Obama and former President Bill Clinton will address the delegates later in the week, bringing the kind of presidential firepower that the Republican convention could not muster because of opposition to Mr. Trump.
The unexpected decision by Mr. Bloomberg to endorse Mrs. Clinton reflected his increasing dismay about the rise of Mr. Trump and could help her reach out to swing voters and disaffected Republicans.
Mr. Sanders’s supporters were elated by Ms. Wasserman Schultz’s decision, which they said was long overdue.
”Thank God for WikiLeaks,” said Dan O’Neal, a delegate from Arizona who was wearing a “Bernie for President” T-shirt. “The party was stacked from the beginning with Debbie in charge.”
Ben Jealous, a frequent surrogate for Mr. Sanders and a former president of the N.A.A.C.P., said in Philadelphia on Sunday that the move “allows us to heal and move on.”
But many of Mr. Sanders’s backers are still not ready to let go, and their frustration could be seen on the streets of Philadelphia. A large, boisterous crowd of Mr. Sanders’s supporters, chanting “hell, no, D.N.C., we won’t vote for Hillary,” marched toward the site of the Democratic convention on Sunday afternoon
The turnout of more than 1,000 people from as far as Seattle and Florida was much larger than any of the protest marches last week in Cleveland during the Republican convention.
Further angering some members of the party’s left was Mrs. Clinton’s selection of Senator Tim Kaine of Virginia as her running mate, a move that was widely heralded by establishment Democrats but that provoked some backlash on Sunday from members of the party who feel he is not sufficiently liberal.
Following Friday’s announcement that Mr. Kaine was joining the ticket, some die-hard supporters of Mr. Sanders complained that the choice of a centrist Democrat was evidence that Mrs. Clinton had been merely paying lip service to the party’s progressive wing. Many were hoping that she would select Senator Elizabeth Warren of Massachusetts or Senator Sherrod Brown of Ohio if Mr. Sanders was not the choice.
Norman Solomon, a delegate for Mr. Sanders who coordinates the Bernie Delegates Network, said that 90 percent of his delegates found Mr. Kaine to be an “unacceptable” choice for vice president. Mr. Soloman’s group arrived early in Philadelphia to make its displeasure known.
“Secretary Clinton must know that her choice of Kaine can only inflame rather than soothe her relations with the huge constituency of Bernie supporters,” he said.
Mr. Sanders was conspicuously quiet after the pick was announced before breaking his silence on Sunday in the CNN interview. While he spoke highly of Mr. Kaine, he made clear that they had big policy differences.
“Are his political views different than mine? Yes, they are,” Mr. Sanders said. “He is more conservative than I am.”
Ms. Wasserman Schultz’s sudden decision to resign could help tamp down open dissent by Sanders delegates at the convention. Immediately after her announcement, top party leaders praised her work in an effort to show solidarity on the eve of the four-day event.
“I am grateful to Debbie for getting the Democratic Party to this year’s historic convention in Philadelphia, and I know that this week’s events will be a success thanks to her hard work and leadership,” Mrs. Clinton said. “There’s simply no one better at taking the fight to the Republicans than Debbie.”
President Obama also issued a statement, saying: “For the last eight years, Chairwoman Debbie Wasserman Schultz has had my back. This afternoon, I called her to let her know that I am grateful.”
As Democrats digested the news, Republicans gloated.
The Republican National Committee sent out headlines that depicted the Democratic Party in disarray.
Mr. Trump, who spent much of the day egging on supporters of Mr. Sanders to revolt following the selection of Mr. Kaine, bragged on Twitter that he always knew Ms. Wasserman Schultz was “overrated.”
I always said that Debbie Wasserman Schultz was overrated. The Dems Convention is cracking up and Bernie is exhausted, no energy left!
— Donald J. Trump (@realDonaldTrump) July 24, 2016
“The Dems Convention is cracking up, and Bernie is exhausted, no energy left!” Mr. Trump said.
The fallout from the resignation could jeopardize Ms. Wasserman Schultz’s seat in Congress, as she faces Tim Canova, a law professor who supports Mr. Sanders, in a primary election next month.
Since Democrats had connection with APC fanatical regime in Nigeria they got infected by Islamic plague
Credit to NYT