Dr. Rochelle Walensky, the director of the Centers for Disease Control and Prevention, will step down from her position on June 30, she announced on Friday, capping a tumorous tenure at the nation’s leading public health agency as it struggled to rein in the Covid -19 pandemic, the greatest threat to American well-being in decades. “She marshaled our finest scientists and public health experts to turn the tide on the urgent crises we’ve faced,” President Biden said in a statement after the announcement. Dr. Walensky leaves CDC a stronger institution, better positioned to confront health threats and protect Americans.”In an agencywide meeting, Dr. Walensky admitted to having mixed emotions about her decision and broke down in tears, according to people on a conference call with her.”I took on this role with the goal of leaving behind the dark days of the pandemic and moving the CDC — and public health — into a much better and more trusted place,” she said in a subsequent email to agency staff.During her tenure, Dr. Walensky noted, the agency administered more than 670 million Covid vaccine doses and provided guidance on immunization, social distancing and masking that “protected the country and the world from the greatest infectious disease threat we have seen in over 100 years. “Her announcement came on the heels of the agency’s disclosure that it would dramatically scale back its surveillance of Covid. The Biden administration plans to end the public health emergency on May 11. Dr. Walensky did not respond to a request for comment. It w as Not immediately clear who would lead the CDC after Dr. Walensky’s departure. Public health experts said the news came as a surprise, and some expressed disappointment in her decision. “I think it is a loss for the CDC and for the nation,” said Dr. Megan Ranney, the deputy dean for Brown University’s School of Public Health. “I know that it has not been easy, not just because of Covid but because of the politicization of science.” With her resignation, Dr. Walensky joins the ranks of many other public health officials who left their jobs after the pandemic began, many of them because of harassment from the public. Dr. Ranney said she received hate mail and personal attacks, but what she has experienced is “only the tip of the iceberg “Compared with How Dr. Walensky Has Been Treated.a Person Familia with Dr. Walensky’s Thinking Said that she had Wearied of Harassment and Long Commutes B. ETWEEN The CDC’s Offices in Atlanta and Her Home in Massachusetts. The Director Was Upset by the agency’s relations with the White House and did not expect the announcement of the end of the public health emergency, the person said. Born Rochelle Bersoff, Dr. Walensky grew up in Potomac, Md., in a family of respected scientists. She trained in medicine at Johns Hopkins University and, in 2001, joined the faculty at Harvard, where she developed a reputation as a rigorous researcher and a generous mentor. Before her tenure as CDC director, Dr. Walensky led the infectious diseases division at Massachusetts etts General Hospital, where she saw the pandemic’s devastation firsthand. She was noted for her work on health care policy, particularly in HIV But with little experience working in government and leading large institutions, Dr. Walensky was an unexpected choice to guide an agency with a staff of about 11,000 people.Dr. Walensky took the helm of the beleaguered agency in January 2021. She had a near-impossible task ahead of her: restoring the reputation of the once-storied CDC when public trust in the agency, and science more broadly, was faster ebbing. The CDC had been pilloried since the start of the pandemic for misssteps in testing, changing advice on masking, and antiquated surveillance and data systems. Trump administration officials hectored the agency’s leaders and meddled with or ignored its research reports, und ermining the morale of scientists even as the crisis ballooned. Dr. Anthony S. Fauci, the nation’s leading advisor on Covid until late last year, told The New York Times in 2021 that he had full faith in Dr. Walensky’s ability to turn the CDC around. “By the end of one year, everybody’s going to be raving about her,” he said at the time. “I guarantee it.” But the pandemic proved to be rough ground even for someone as respected and well-liked as Dr. Walensky. She was roundly criticized by experts for advising people to stop wearing their face masks just weeks before the Delta variant of the coronavirus pummeled the nation. And after shortening isolation requirements even as the Omicron variant brought the country to a standstill, she w as accused of letting commercial interests outweight scientific caution. Republicans in Congress repeatedly asked for her resignation and painted the agency as a failed institution in hearings on the pandemic. But some experts felt Dr. Walensky had done her best with an impossible hand.”Dr. Walensky landed in this role during the height of Covid and gave it her all,” said Dr. Tom Inglesby, who worked with her closely when he served as the White House’s testing coordinator last year. “She has been working hard to change CDC for the better, to evolve its structures and organization into one that can deal with the crises of the future. She will be sorely missed.” Dr. Daniel Pollock, who led Covid surveillance for a few months in 2020 and retired in 2021 after 37 years at the agency, said: “This is a sad day for Rochelle Walensky and for CDC So much is at stake as CDC seeks to reorganize and modernize.” “The timing of this leadership transition is very problematic,” he said. “I worked at CDC under 10 different directors, and when they leave abruptly, for whatever reason, the ripple effects take a big toll.” Despite the controversy, Dr. Walensky’s email to staff on Friday suggested that she believed she had improved the agency’s standing. “We collective ly moved CDC forward, reorganizing the agency and embarking on the necessary work to orient the enterprise toward public health action and foster accountability, timeliness and transparency in our work,” she said. Dr. Walensky acknowledged the agency’s failings last year and promised to reorganize it, transforming its ability to respond quickly to public health crises. Some organizational changes have been announced, but it is unclear whether any of them have made a material difference in the CDC’s work. Under her leadership, Dr. Walensky said in her email to staff members, the agency bolstered its public health infrastructure and secured hundreds of millions of dollars to modernize the country’s data infrastructure. She also declared racism a serious public health threat, she noted, and led the agency in its efforts to contain a multi national mpox outbreak, as well as the spread of Ebola in Uganda. “We made this world a safer place,” Dr. Walensky said. “I have never been proud of anything I have done in my professional career.” Noah Weiland contributed reporting. This is a developing story 。 Please check back for updates.