In the speech, Mr. de Blasio presented his mayoralty as one that has made streets safer and brought new protections for tenants and workers. He cast himself as an aspiring Robin Hood — aiming to take from the rich and give to the poor — even as he has thus far been unsuccessful in his many attempts to raise taxes on high earners.

Major elements of the speech had been set out by Mr. de Blasio in recent days: a plan to improve customer service for the city’s public hospitals and better connect uninsured residents to primary care physicians; and legislation to require paid vacation for private-sector workers.

Others were new, if somewhat less grand. The ferry system would expand to include new routes to Staten Island and Coney Island. The city would create a program to help workers save for retirement, if the companies they work for do not offer savings plans.

[Looking for more on the mayor’s speech? Here are some takeaways.]

Mr. de Blasio tiptoed around some of the thornier challenges of his administration, such as the soaring number of homeless and the city’s scandal-plagued and deteriorating public housing system, which he mentioned once and appeared to promise more than he could deliver. “The New York City Housing Authority has a plan to bring brand-new everything to 175,000 Nycha residents,” he said.

The mayor also did not mention that he had secured the promise of 25,000 jobs by reaching a deal two months ago to bring Amazon offices to Queens, even though a pledge to bring 100,000 good-paying jobs to New York City was a centerpiece of his 2017 address. The deal to lure Amazon to New York City, at a cost of about $3 billion in state and city incentives, is deeply unpopular among some liberals.