Mayor de Blasio used a Sunday ride on the F train to fire back at Gov. Cuomo and the MTA over accusations that City Hall has failed to maintain the crumbling subway system — and vow not to increase funding for capital improvements.

Hizzoner insisted the public-transit “state of emergency” declared recently by Cuomo was “not about the MTA needing more money.”

He also accused the Metropolitan Transportation Authority of not spending its capital budget.

“The state of New York has used the MTA as a piggy bank,” he told reporters while flanked by First Lady Chirlane McCray.

Last week, Cuomo and MTA Chairman Joe Lhota both blamed de Blasio for refusing to spend the city’s $4 billion-plus budget surplus to fix the underground transit system.

“They own it, they lease it, it’s their responsibility to fund it,” Lhota said Thursday.

City Hall responded by claiming that its pledge to fund $2.5 billion of the MTA’s current five-year, $32.5 billion capital plan was “unprecedented” and

“far in excess of any legal obligation.”

Lhota has said he will ask the city for additional cash once he finalizes a 30-day review of the subway crisis by the end of this week.