Ms. Pressley backed her home state senator, a longtime ally. “We find ourselves in a fight for the soul of our nation, and I know Elizabeth can win it,” she said.

Credit...Katherine Taylor for The New York Times

Representative Ayanna S. Pressley of Massachusetts, the only member of the group of progressive first-term congresswomen nicknamed “the squad” who had not yet backed a Democratic presidential candidate, has endorsed Senator Elizabeth Warren of Massachusetts, a longtime ally.

Ms. Pressley announced her decision in an email to supporters Wednesday afternoon, and released a corresponding video announcement.

“Elizabeth has made it her life’s work to pursue justice for working families and put economic and political power in the hands of people,” Ms. Pressley said in a statement. “We find ourselves in a fight for the soul of our nation, and I know Elizabeth can win it.”

In choosing Ms. Warren, Ms. Pressley provided her home-state senator with her most high-profile congressional endorsement to this point, and avoided ruffling feathers in the closely-knit Massachusetts Democratic Party.

She also split from her congressional cohort, as Representatives Alexandria Ocasio-Cortez of New York, Ilhan Omar of Minnesota and Rashida Tlaib of Michigan all endorsed the race’s other ardent progressive, Senator Bernie Sanders of Vermont, last month.

Ms. Pressley was elected to Congress last year, after a grass-roots, multiracial coalition lifted her to victory over Representative Michael E. Capuano in Boston’s only majority-minority district.

She was the first black woman elected to Congress from Massachusetts, and her endorsement gives Ms. Warren a prominent black surrogate in a campaign that must gain traction with black voters in order to overtake former Vice President Joseph R. Biden Jr. in the race for the Democratic nomination.

Ms. Warren has done significant outreach to black progressive groups and Democratic leaders over the past year — more than any other white candidate in the race. However, recent polls still show her trailing Mr. Biden among black voters by almost 30 points and she lags in South Carolina, the early primary state where black voters make up more than 60 percent of the electorate.

“I have seen Ms. Warren in small church basements and in packed gymnasiums,” Ms. Pressley said in the video. “And she is consistent. She never loses sight of the people.”

“You’ve all heard about the senator’s plans — but here’s the thing,” she added. “Her plans are about power: who has it, who refuses to let it go, and who deserves more of it.”

The endorsement was a must-have for Ms. Warren, who has risen sharply in polls and fund-raising over the last six months but has lagged in some traditional measures of party support, including endorsements from governors, big-city mayors, or fellow senators outside Massachusetts. In recent weeks her campaign has sought to reverse that trend by lining up endorsements from anti-establishment progressive champions popular among the party’s left wing.

Representative Katie Porter of California endorsed Ms. Warren over her home-state legislator, Senator Kamala Harris of California. Mayor Jim Kenney of Philadelphia announced his support for Ms. Warren’s campaign last month, her first endorsement from a big-city mayor.

Ms. Warren also recently rolled out endorsements from two of the country’s most progressive district attorneys: Larry Krasner of Philadelphia and Rachael Rollins of Suffolk County in Massachusetts.

Mr. Krasner, who supported Mr. Sanders in 2016, received some blowback for endorsing Ms. Warren over Mr. Sanders, who remains in striking distance in most polls.

“I have not forgotten and no one should forget that Bernie Sanders, early in his prior campaign for president, said the only reason he ran was that he couldn’t persuade his friend Elizabeth Warren to run for president,” Mr. Krasner said in response. “I heard what he said, and I remembered what he said.”

While Ms. Ocasio-Cortez, Ms. Omar, and Ms. Tlaib have become household names partly out of their willingness to upset the Democratic establishment, including House Speaker Nancy Pelosi, Ms. Pressley has gained a reputation as a cautious Capitol Hill operator.

Ms. Pressley, 45, was the first nonwhite woman elected to the Boston City Council in 2009 and had a robust local constituency before being elected to Congress. Unlike newcomers like Ms. Ocasio-Cortez, who speaks about how Mr. Sanders’s presidential run in 2016 helped motivate her to seek elected office, Ms. Pressley was a delegate for Hillary Clinton in the 2016 election and has close relationships with the party’s traditional power brokers. She is also considered a prospective candidate for Ms. Warren’s Senate seat should Ms. Warren win the White House.

Some in Massachusetts have speculated that Ms. Pressley could play the role of television surrogate for Ms. Warren, serving as a progressive ally who would implicitly counteract perceptions of her campaign as geared toward white elites. Ms. Ocasio-Cortez, Ms. Omar, and Ms. Tlaib are helping play a similar role for Mr. Sanders, and have held rallies with him in their respective home districts of New York City, Minneapolis, and Detroit.

In Massachusetts, where the congressional delegation only comprises Democrats and where a contentious Senate primary is currently underway, Ms. Pressley’s endorsement speaks to the high-stakes political game of who to back — and when. Ms. Pressley was not a part of the initial round of home-state endorsements during Ms. Warren’s campaign launch earlier this year, leading to speculation that she would sit out the presidential primary or back Ms. Harris, the 2020 race’s only black woman.

Instead, Ms. Pressley joined Ms. Warren’s cause, politically cementing the informal friendship that has existed among them for years.

In 2018, when Ms. Pressley announced plans to run against Mr. Capuano, Ms. Warren stayed out of the race — a sign the grass-roots campaign Ms. Pressley had built was exceeding expectations. Now, it’s Ms. Pressley playing power broker, as Ms. Warren seeks to usurp the establishment herself.