Mayor Zohran Mamdani and UAW president Shawn Fein are flexing their political power and backing a democratic socialist in a high-profile race to replace Rep. Nydia Velázquez in a district that covers Brooklyn and Queens.

Both men plan to appear with Claire Valdez, a 36-year-old assemblymember from Queens, at an event on Friday. Mamdani and Fein’s support amounts to a powerful boost from the progressive left and labor.

In an interview with Gothamist, the mayor said he had been impressed with Valdez’s history as an organizer in the local chapter of the United Auto Workers when she worked at Columbia University.

“I truly believe that we need a labor organizer in Congress,” Mamdani said. “We need someone who will put forward that same agenda for the working class, whether it’s legislation to make it easier to join a union or to fight for Medicare for All.”

He added that he was confident that Valdez would connect with voters in a district that he said has “long been on the front lines of the progressive movement.”

The seat has been represented by Nydia Velázquez, a trailblazer who was the first Puerto Rican elected to Congress. In November, Velázquez announced that she would not run for reelection to make way for a younger generation of progressive leaders.

The mayor – who is also a democratic socialist – had been expected to endorse Valdez. Mamdani encouraged Valdez to run for the assembly and she was among his earliest mayoral campaign supporters.

By announcing his endorsement one day after Valdez launched her campaign, Mamdani is showing a willingness to shape a race that will test the popularity of the Democratic Socialists of America, as well as his own. Last month, Mamdani announced his support for former City Comptroller Brad Lander in his bid to unseat the incumbent Dan Goldman in a district that covers Lower Manhattan and Brooklyn.

Mamdani performed strongly with voters in Velasquez’s 7th district, which includes Astoria, Williamsburg, Greenpoint and Bushwick.

Valdez will face a primary battle against Brooklyn Borough President Antonio Reynoso, a progressive with deep ties to the Democratic establishment.

Mamdani said he had “great respect” for Reynoso, but added: “I think that Democratic primaries for an open seat are an opportunity to respectfully and thoughtfully shape the future of the party.”