Even while his lips remained sealed on the governor’s race, Mayor de Blasio went all out Sunday for a state Senate candidate from Brooklyn who’s challenging a Republican-aligned incumbent.

De Blasio visited four predominantly black churches to stump for Zellnor Myrie, who’s running against state Sen. Jesse Hamilton (D-Crown Heights) in Thursday’s Democratic primary.

Hamilton, first elected in 2014, joined the Senate’s Independent Democratic Caucus in 2016. The IDC shares power with the chamber’s Republican minority instead of caucusing with Democrats.

“I’m not going to go into detail about the current incumbent,” de Blasio told congregants at St. Gabriel’s Episcopal Church in Flatbush.

“All I’m going to say is that the current incumbent is a Democrat who chose to work with the Republicans.”