NYC mayor Bill de Blasio ending his Democratic presidential campaign
New York City Mayor Bill de Blasio on Dec. 1, 2014 in Washington, DC. (Photo by Mandel Ngan for Agence France-Presse.)

New York City mayor Bill de Blasio has ended his Democratic presidential campaign.

De Blasio made the announcement Friday on MSNBC's "Morning Joe," where he explained his decision.

"I feel like I've contributed all I can to this primary election," he said, "and it's clearly not my time."

The mayor said he was optimistic about the Democratic Party's chances in the 2020 election, no matter who was nominated to face President Donald Trump.