Nancy Pelosi, who has led Democrats in the US House of Representatives for almost two decades, has announced she is standing down from the role.
The 82-year-old is the most powerful Democrat in Congress and the first woman to serve as speaker of the House.
She will continue to represent her California district in the lower chamber of Congress.
It comes as Republicans are projected to take back control of the House following the midterm elections.
Republican Kevin McCarthy has won the party’s nomination to be speaker in the new Congress and is likely to succeed Mrs Pelosi.
“I never would have thought that someday I would go from homemaker to House speaker,” Mrs Pelosi said in a statement in the chamber on Thursday.
“I will not seek re-election to Democratic leadership in the next Congress. The hour has come for a new generation to lead the Democratic caucus,” she said.
Mrs Pelosi will serve as speaker until January when a new Congress takes over, and will remain in the seat she first took up in 1987 until January 2025.
New York congressman Hakeem Jeffries is widely expected to take up the top Democratic leadership post in the House, which would make him the first black congressional leader in US history.
Speaker of the House is the one congressional job detailed in the US Constitution. After the vice-president, it is next in line to the presidency.
The speaker and deputies and committee chairs determine what bills are considered and voted on. They set the agenda and decide the rules governing debate.
Mrs Pelosi became minority leader, the title held by the person leading the opposition in the House, in 2003. The Democrats then took control of the House for the first time in more than a decade in 2006, and she became the first woman to lead a major party in either chamber of Congress.
Mrs Pelosi became minority leader again four years later but returned to the speaker’s chair in 2019.
As speaker, Mrs Pelosi played a critical role in advancing – or thwarting – the agendas of multiple presidents.
She is widely credited with marshalling the passage of former President Barack Obama’s signature healthcare legislation, as well as bills to address infrastructure and climate change under incumbent President Joe Biden.
Mrs Pelosi also directly challenged Donald Trump throughout his presidency, famously ripping up a copy of his State of the Union address behind his back.
Rumours around her future had swirled in the aftermath of a violent break-in at her home last month that left her husband Paul, 82, in need of skull surgery.
Lawmakers gave her a standing ovation on Thursday as she thanked them for their prayers and spoke of her “beloved partner in life and my pillar of support”. She later said that she has been struggling with “survivor’s guilt” since the attack, according to the Washington Post, as her husband was hurt “because they were looking for me”.