New York City Mayor Bill de Blasio has announced he is dropping out of the 2020 Democratic presidential primary.

His campaign failed to gain momentum in a Democratic field filled with candidates.

"I feel like I've contributed all I can to this primary election and it's clearly not my time," de Blasio said on MSNBC's "Morning Joe." "So I'm going to end my presidential campaign, continue my work as mayor of New York City, and I'm going to keep speaking up for working people and for a Democratic Party that stands for working people."

He pledged Friday to continue his efforts advancing progressive ideas.

CNN Contributed to this story.