The war between Gov. Andrew Cuomo and Mayor Bill de Blasio just got saucy.

Cuomo threw a pie in the mayor’s face Wednesday — saying that if hizzoner wants his favorite Brooklyn pizza joint, Di Fara, open again he can pony up the $167,000 in unpaid state taxes the place owes himself.

“He has no legal authority to forgive state taxes,” Cuomo said. “Now, if he wants to pay the $200,000 on behalf of the pizza place, he can do that. That’s fine. And if he wants to get $200,000 worth of pizza, that’s his business. But he can’t forgive state taxes.”

He then added: “I’m not going to pay $200,000 for their pizza, even if it’s very good pizza.”

Cuomo’s slam came after de Blasio suddenly jumped into the Di Fara fray on Twitter earlier Wednesday.

“Di Fara is THE best pizza place in New York City,” he wrote. “It MUST be saved. I’m ready to do anything I can to get them reopened — as are thousands of New York City pizza-lovers. My team and I are looking into how we can help resolve this situation.”

City Hall later released a statement saying the mayor was “reaching out to the family to determine the extent of their problems and whether there is anything we can do to help” — but still didn’t explain how the city could make a state tax bill go away.

The state Department of Taxation and Finance says the 55-year-old Midwood institution has unpaid taxes dating to 2014.

State tax officials showed up at 11:30 a.m. Tuesday and kicked everyone out, padlocked the door and posted a sign saying the famous pie joint “is now in the possession of The State of New York.”

Margaret DeMarco-Mieles, whose family owns the eatery, told The Post she has paid her taxes — but not according to the state.

Her father, Domenico DeMarco, opened Di Fara in 1964. It has since been ranked as one of the best pizza joints in the Big Apple, despite getting shut down twice by the health department last year over possible rodent infestation.

Brooklynites outside Di Fara Wednesday said they didn’t trust the mayor to get it done.

“To say and to do is a big difference,” said Irene, who said she’s lived in the area for 15 years. “I don’t believe de Blasio.”

“I don’t know what he’s going to do. Pay the taxes for them? No,” said Alex Joe, a 71-year-old regular at the eatery. “How can he change it? The place wasn’t clean, sure. But the pizza was excellent.”

“I’ll believe it when I see it,” said neighborhood resident Shawn Reid, 47.

De Blasio certainly couldn’t count on Cuomo to bail him out — the two pols have been openly feuding for weeks.

The governor pointedly declined to invite de Blasio to a Manhattan press conference last week to announce a major domestic terrorism initiative, even though City Council Speaker Corey Johnson and other Big Apple pols were there. Earlier in the month Cuomo slammed the de Blasio administration for the “impotent” reaction of NYPD cops who simply walked away after a series of water-bucket dousing attacks — blaming it on poor training and policies by the city.

And last month the governor lambasted de Blasio for failing to bring administrative charges against now-former police officer Daniel Pantaleo in the 2014 chokehold death of Eric Garner. Pantaleo was fired this week by Police Commissioner James O’Neill following a department hearing in June and July.