Mayor de Blasio's second year in office has been a bumpy one, defined by bruising and at times embarrassing political missteps with even the mayor himself admitting he has made mistakes. NY1's Grace Rauh filed the following report.

Mayor de Blasio kicked off 2015 with a soaring speech about the need for more affordable housing. It was to be the signature initiative of his second year in office.

"New York risks taking on the qualities of a gated community," the mayor said Feb. 3.

But as the year draws to a close, his ambitious plan to build or preserve 200,000 affordable apartments is on the rocks. Zoning changes that City Hall is pushing to encourage affordable development are facing stiff opposition in the five boroughs.

It is a blow to de Blasio, but it is hardly the biggest issue that the administration is facing at the end of 2015. Instead, near-record levels of homelessness are center stage at City Hall.

"This problem is not going away overnight," de Blasio said.

The mayor initially dismissed concerns about the number of people living on the streets. Now, however, he is scrambling to address the problem and is launching a new program to canvas much of Manhattan.

"We have to reach the street homeless literally every single day," he said.

Governor Cuomo is not exactly backing de Blasio up. Their relationship soured after the mayor went public in a June interview with NY1 with complaints about his fellow Democrat.

"What we've often seen is that if someone disagrees with him openly, some kind of revenge or vendetta follows," the mayor said June 30.

His relationship with police is on stronger footing. Crime is down overall, but there have been more murders this year compared to last when they were at a record-low.

The mayor approved funding for 1,300 additional police officers and he rolled out a new anti-terror unit.

De Blasio hoped to play progressive kingmaker on the national stage, but his plans did not pan out. His decision to hold off on endorsing Hillary Clinton didn't go as planned, and he had to pull the plug on a presidential forum he intended to host in Iowa amid a lack of interest from the candidates.

His poll numbers have taken a dive at home, and potential challengers are beginning to circle.

"Anyone who wants to run against me, God bless them," de Blasio said Aug. 20.

The mayor has admitted that he has made mistakes but said his job is to learn from them.