JERUSALEM: Israeli former military chief Gadi Eisenkot voiced confidence Tuesday he will shortly form a government to replace veteran Prime Minister Benjamin Netanyahu, after sealing agreements with coalition partners and holding friendly first talks with US President Donald Trump.

Netanyahu, 77, who has been in and out of power for three decades, made clear he would not exit without a fight and called on supporters to join a rally with his far-right allies outside parliament late Tuesday.

Eisenkot announced he had reached coalition agreements with all party leaders in his broad left-to-right bloc from the October 27 election, meaning Netanyahu, famed for his canny political manoeuvring, failed to woo any of them with promises of a unity government.

“We are closer than ever to delivering the change that all Israelis need,” Eisenkot said, vowing to “move quickly to present a government” to parliament.

He acknowledged more work was needed but said: “Pay no attention to the spin and noise that will flood the airwaves in the coming days.”

President Isaac Herzog has given Eisenkot until Sunday to form a government, although he can then offer a 14-day extension.

Despite Eisenkot’s optimism, neither he nor Netanyahu won the 61 votes needed in the 120-member Knesset.

Two of Eisenkot’s right-wing partners, Naftali Bennett and Avigdor Liberman, oppose relying on Israeli-Arab parties, which posted record election gains on the back of the minority group’s anger over Netanyahu’s hard-right government.

Liberman has instead pushed for an alliance with ultra-Orthodox Jewish parties, even though he himself has campaigned for years on ending their exemption from military service — a sore point for many Israelis when reservists are serving multiple tours due to years of war.

Bennett until Tuesday was the last holdout in the opposition bloc and had considered uniting with Netanyahu. Bennett has not publicly eased his demands that the ultra-Orthodox serve.