Italy’s prime minister said he would resign on Tuesday and launched a blistering attack on his own interior minister, accusing him of sinking the ruling coalition and endangering the economy for personal gain.

Prime Minister Giuseppe Conte, addressing Parliament after it was recalled from summer recess to decide the future of the 14-month-old government, accused League party chief Matteo Salvini of seeking to cash in on his rising popularity.

“[Salvini] has shown that he is following his own interests and those of his party,” an angry Conte told a packed Senate, a stony-faced Salvini sitting by his side.

“His decisions pose serious risks for this country.”

He called Salvini — who declared the coalition unworkable 12 days ago and called for snap elections — reckless and “liable to tip the country into a spiral of political uncertainty and financial instability.”

Conte, who belongs to neither of the coalition’s two parties, said he would hand in his resignation later in the day, allowing the head of state to start formal consultations with parties to see if a new coalition can be formed.

Failing that, President Sergio Mattarella would have to dissolve Parliament, 3½ years ahead of schedule, a move that could trigger elections as early as the autumn.

Financial markets rallied on Conte’s resignation, seemingly hopeful that snap polls could be avoided amid reports the ruling 5-Star Movement might seek an alliance with the center-left opposition Democratic Party.

Salvini at times shook his head, rolled his eyes or nodded to League senators as the prime minister accused him of being “irresponsible,” “reckless,” “alarming” and “disrespectful.”

Conte said he was worried by Salvini’s threat to call people into the country’s squares if his drive for elections were thwarted, as well as his demand for “full powers.”

“We do not need men who have ‘full powers’, but people who have institutional culture and a sense of responsibility,” he said in an hour-long speech in which he also denounced Salvini’s habit of brandishing the cross at his political rallies.

Salvini rejected Conte’s comments, saying other parties were afraid of going to elections and losing their influence.

He said his political goal was to challenge the European Union’s fiscal rules, which he has blamed for impoverishing the country.

Rome should spend at least $55 billion to stimulate the chronically weak economy, he added.

“I am not afraid,” he said. “I don’t want Italy to be a slave to anyone, and I don’t want Italy to be given a long chain like a little dog. I don’t want any chain at all.”

Italy has not held an election in the autumn since World War II because the final months of the year are traditionally dedicated to drawing up the budget — a key moment for a country with one of the world’s largest debt mountains.

With Post wires