Rep. Nancy Pelosi, a trailblazing San Francisco Democrat who leveraged decades of power in the U.S. House to become one of the most influential political leaders of her generation, will not run for reelection in 2026, she said Thursday.

The former House speaker, 85, who has been in Congress since 1987 and oversaw both of President Donald Trump’s first-term impeachments, had been pushing off her 2026 decision until after Tuesday’s vote on Proposition 50, a ballot measure she backed and helped bankroll to redraw California’s congressional maps in her party’s favor.

With the measure’s resounding passage, Pelosi said it was time to start clearing the path for another Democrat to represent San Francisco — one of the nation’s most liberal bastions — in Congress, as some are already vying to do.

“With a grateful heart, I look forward to my final year of service as your proud representative,” Pelosi said in a nearly six-minute video she posted online Thursday morning, in which she also recounted major achievements from her long career.

Pelosi did not immediately endorse a would-be successor, but challenged her constituents to stay engaged.

“As we go forward, my message to the city I love is this: San Francisco, know your power,” she said. “We have made history, we have made progress, we have always led the way — and now we must continue to do so by remaining full participants in our democracy, and fighting for the American ideals we hold dear.”

Pelosi’s announcement drew reaction across the political world, with Democrats lauding her dedication and accomplishments and Trump, a frequent target and critic of hers, ridiculing her as a “highly overrated politician.”

Pelosi has not faced a serious challenge for her seat since President Ronald Reagan was in office, and has won recent elections by wide margins. Just a year ago, she won reelection with 81% of the vote. But Pelosi was facing two hard-to-ignore challengers from her own party in next year’s Democratic primary: state Sen. Scott Wiener of San Francisco, 55, a prolific and ambitious lawmaker with a strong base of support in the city, and Saikat Chakrabarti, 39, a Democratic political operative and tech millionaire who is infusing his campaign with personal cash.

Their challenges come amid a shifting tide against gerontocracy in Democratic politics more broadly, as many in the party’s base have increasingly questioned the ability of its longtime leaders — especially those in their 70s and 80s — to sustain an energetic and effective resistance to Trump and his MAGA agenda. In announcing his candidacy for Pelosi’s seat last month, Wiener said he simply couldn’t wait any longer. “The world is changing, the Democratic Party is changing, and it’s time,” he said.

Chakrabarti — who helped Rep. Alexandria Ocasio-Cortez, D-N.Y., topple another older Democratic incumbent with a message of generational change in 2018 — said voters in San Francisco “need a whole different approach” to governing after years of longtime party leaders failing to deliver.