Their plan to appear together over the last weekend before the primary, appears aimed at creating a bloc against the presumed front-runner, Eric Adams.

Andrew Yang had been hinting for days that he might form an alliance with one of his rivals in the New York City mayor’s race to stop the front-runner, Eric Adams, from winning the Democratic primary.

On Friday night, Mr. Yang announced he would spend Saturday campaigning with Kathryn Garcia, another leading candidate, in an apparent signal of a likely cross-endorsement, or something close to it.

An email from his campaign said Mr. Yang and Ms. Garcia planned on Saturday to attend a rally, greet voters and hold a news conference together, grabbing attention in the final days of the race. A spokesman for Mr. Yang, Jake Sporn, would not say if the joint events meant the candidates would cross-endorse each other.

“Stay tuned,” he said.

Cross-endorsements are a common feature of ranked-choice elections — a voting system that New York City is using for the first time in a mayoral election. Candidates encourage their supporters to rank another candidate second on their ballot, boosting both campaigns.

For months, Mr. Yang, a 2020 presidential candidate, has made his respect for Ms. Garcia, the city’s former sanitation commissioner, well known. Mr. Yang had said that she was his second choice and that he would want her to serve in his administration, but Ms. Garcia had not returned the favor.

Both candidates are trying to stall momentum by Mr. Adams, the Brooklyn borough president, who has been leading in the polls. Mr. Adams, who has faced questions over his residency and his finances in recent days, stood before supporters in Harlem on Friday to dismiss the growing attacks from his rivals.

“All the stuff you are seeing out there is to throw Eric off his game,” Mr. Adams said. “That’s all this is. And they are not going to do it.”

For days, Mr. Adams has advised those who support him, “no distractions, stay focused and grind.” On Friday, his opponents appeared to be heeding that message as well, hopping between boroughs for campaign events and making their final appeals.

The flurry of activity heading into the weekend reflected the candidates’ urgent efforts to get their supporters to cast ballots in the final days of early voting, which ends Sunday, and to the polls on Tuesday. As of Friday, 130,000 people had voted early, a relatively small number that suggested much the electorate could still be up for grabs.

Appearing earlier in the day in Queens, Mr. Yang had announced a cross-endorsement with Elizabeth Crowley, a former City Council member running for Queens borough president. When asked about the possibility of a cross-endorsement with one of his rivals, he said only “there will be more news to come on that front.”

Andrew Yang, standing with firefighters and other supporters, criticized Mr. Adams for his connections to the city’s political establishment.
Michael M. Santiago/Getty Images

As he has often done in the weeks since Mr. Adams began to consolidate his lead in the race, Mr. Yang criticized his rival over his ties to Mayor Bill de Blasio.

“We need to break the stranglehold of the special interests that have been running our city into the ground,” Mr. Yang said.

Mr. Yang also continued to focus on public safety, an issue that has dominated the campaign’s late stages amid a rise in violent crimes, even as the rate of such offenses remains well below where it was in the 1980s and ’90s.

Mr. Yang, citing the endorsements he has received from the firefighters’ and police captains’ unions, again criticized Mr. Adams’s record on public safety. (Before entering politics, Mr. Adams was Police Department captain.)

Voters who are still undecided, Mr. Yang said, should look to the unions for guidance on choosing a candidate. Mr. Yang did not mention that the fire officers’ union, which represents lieutenants, captains, and chiefs, has endorsed Mr. Adams.

“I’m the right choice for New York City, according to the firefighters, the police captains,” Mr. Yang said. “And as New Yorkers discover this in the next number of days, they’re going to come out and vote for me.”

Maya Wiley, a former counsel to Mr. de Blasio who has also taken aim at Mr. Adams, held a rally in Brooklyn where she spoke of her support for police reform.

Jonah Markowitz for The New York Times

Surrounded by a crowd of mostly Black supporters outside the Brooklyn Public Library’s main branch, on Grand Army Plaza — a frequent site of protests after the police killing of George Floyd last year — Ms. Wiley invoked the Black Lives Matter movement and promised that she would bring its message to City Hall.

.css-1xzcza9{list-style-type:disc;padding-inline-start:1em;}.css-3btd0c{font-family:nyt-franklin,helvetica,arial,sans-serif;font-size:1rem;line-height:1.375rem;color:#333;margin-bottom:0.78125rem;}@media (min-width:740px){.css-3btd0c{font-size:1.0625rem;line-height:1.5rem;margin-bottom:0.9375rem;}}.css-3btd0c strong{font-weight:600;}.css-3btd0c em{font-style:italic;}.css-w739ur{margin:0 auto 5px;font-family:nyt-franklin,helvetica,arial,sans-serif;font-weight:700;font-size:1.125rem;line-height:1.3125rem;color:#121212;}#NYT_BELOW_MAIN_CONTENT_REGION .css-w739ur{font-family:nyt-cheltenham,georgia,’times new roman’,times,serif;font-weight:700;font-size:1.375rem;line-height:1.625rem;}@media (min-width:740px){#NYT_BELOW_MAIN_CONTENT_REGION .css-w739ur{font-size:1.6875rem;line-height:1.875rem;}}@media (min-width:740px){.css-w739ur{font-size:1.25rem;line-height:1.4375rem;}}.css-9s9ecg{margin-bottom:15px;}.css-uf1ume{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.css-wxi1cx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;}.css-12vbvwq{background-color:white;border:1px solid #e2e2e2;width:calc(100% – 40px);max-width:600px;margin:1.5rem auto 1.9rem;padding:15px;box-sizing:border-box;}@media (min-width:740px){.css-12vbvwq{padding:20px;width:100%;}}.css-12vbvwq:focus{outline:1px solid #e2e2e2;}#NYT_BELOW_MAIN_CONTENT_REGION .css-12vbvwq{border:none;padding:10px 0 0;border-top:2px solid #121212;}.css-12vbvwq[data-truncated] .css-rdoyk0{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}.css-12vbvwq[data-truncated] .css-eb027h{max-height:300px;overflow:hidden;-webkit-transition:none;transition:none;}.css-12vbvwq[data-truncated] .css-5gimkt:after{content:’See more’;}.css-12vbvwq[data-truncated] .css-6mllg9{opacity:1;}.css-qjk116{margin:0 auto;overflow:hidden;}.css-qjk116 strong{font-weight:700;}.css-qjk116 em{font-style:italic;}.css-qjk116 a{color:#326891;-webkit-text-decoration:underline;text-decoration:underline;text-underline-offset:1px;-webkit-text-decoration-thickness:1px;text-decoration-thickness:1px;-webkit-text-decoration-color:#326891;text-decoration-color:#326891;}.css-qjk116 a:visited{color:#326891;-webkit-text-decoration-color:#326891;text-decoration-color:#326891;}.css-qjk116 a:hover{-webkit-text-decoration:none;text-decoration:none;}

Representative Yvette Clarke, a Brooklyn Democrat who has endorsed Ms. Wiley, urged voters to advance the movement’s goals and not to be swayed by appeals for more aggressive policing.

“Vote your hopes,” Ms. Clarke said, “not your fears.”

Kirsten John Foy, a civil rights activist, went further, attacking Mr. Yang, Mr. Adams and Ms. Garcia, a former sanitation commissioner, directly.

“There are dangerous candidates out here,” Mr. Foy, who was an aide to Mr. de Blasio before he was mayor, said. “We have got to pull the curtain back and call out these wolves in sheep’s clothing.”

Mr. Foy accused Ms. Garcia of trying to cozy up to New York’s largest police union, whose leaders are politically conservative. The union’s president asked officers in an email, obtained by The New York Times, to rank Ms. Garcia, Mr. Adams or Mr. Yang on their ballots — and not other candidates.

Ms. Garcia scoffed at the comment later, telling reporters that she had not “had any conversation” with the union at all.

At his Harlem event, Mr. Adams dismissed the criticisms leveled against him by Ms. Wiley and her supporters, deriding her as a “college professor” with little practical understanding of public safety.

“We need a professional that knows how to keep this city safe,” Mr. Adams said. “My résumé out-beats everyone on that stage. They know it, I know it.”

Standing alongside Mr. Adams were several anti-violence activists and parents of people who had been killed in violent incidents. He and his supporters continued to argue that his experience made him the best candidate to both keep residents’ safe and address discriminatory policing.

“If you break the law, you are going to be accountable for it under Eric Adams,” said Hazel N. Dukes, president of the N.A.A.C.P.’s New York chapter. “How do I know that? Because I trained him.”

Asked about issues related to his real estate holdings, including a co-op apartment he bought in Brooklyn in 1992 with a woman he has described as a good friend, Mr. Adams said he had already answered questions on the subject. He has previously said he gave his shares in the co-op to the woman, Sylvia Cowan.

Ms. Cowan, in a text message to The New York Times on Friday, said Mr. Adams “transferred all of his shares” to her in March 2007. But an email that Ms. Cowan sent to the co-op’s board in May, which The Times obtained, suggests that Mr. Adams still owned his shares in the unit as recently as last month.

When asked about his residency and his finances, Mr. Adams called the criticism of him “desperate attempts” by his opponents.

“I’m so finished with all that,” he said.

Anne Barnard contributed reporting.