Former Mayor Bill de Blasio announced on Twitter Tuesday that he is dropping out of the Democratic primary for the 10th congressional district, a month ahead of the vote. 

The former mayor said the decision came after listening to the concerns of Brooklyn and Manhattan residents. 

“I’ve listened really carefully to people, and it’s clear to me that when it comes to this congressional district, people are looking for another option, and I respect that,” De Blasio said.

In the text of the tweet, de Blasio also said that it is time for him “to leave electoral politics and focus on other ways to serve."

The former mayor added that his candidacy for the congressional race was an experience that he will learn from in the future. 

“I made mistakes. I want to do better in the future. I want to learn from those mistakes,” he said. “And it’s been a humbling experience at times, but it’s been a healthy experience.”

In the Twitter video, De Blasio says he is “proud of the people of the city” and will find a different position to better serve New Yorkers in the future. 

“I love the people in this city. I really want to keep serving, and I am going to find a different way to serve,” he said. 

De Blasio ends the video assuring New Yorkers that he will see them “along the way.”

The Democratic primary in the 10th congressional district is crowded. Among the candidates include councilwoman Carlina Rivera, Assemblywoman Yuh-Line Niou, Rep. Mondaire Jones, and other prominent Democrats.

The newly drawn 10th district is heavily Democratic and includes neighborhoods below 14th Street like the East Village and Tribeca in Manhattan to Brooklyn Heights, Borough Park and de Blasio’s own Park Slope neighborhood in Brooklyn.

The seat opened up when Rep. Jerrold Nadler announced he was running in the 12th congressional district against fellow Rep. Carolyn Maloney in the aftermath of redistricting.