Gadi Eisenkot’s Yashar party has agreed to a coalition pact with Israel’s Our Home party, led by Avigdor Lieberman, as Eisenkot seeks to form the next Israeli government after October’s election. The agreement, announced Tuesday after a meeting between the two leaders, is the first alliance of its kind since the vote.

No party secured the 61 seats needed for a parliamentary majority. Israel’s parliament was sworn in on November 10 without a new government.

President Isaac Herzog tasked Eisenkot with forming a government. Benjamin Netanyahu remains caretaker prime minister, although the October 27 election stripped him of his majority.

Eisenkot has until December 6 to form a government under a 28-day mandate and may request a 14-day extension. If he fails, Netanyahu will have an opportunity to try. If neither can form a government, another election will be held next year.

Eisenkot’s party won 21 seats in parliament, while Lieberman’s party won seven. The agreement was unforeseen because Lieberman has opposed forming a government with support from Arab parties, as well as a unity government with Netanyahu. Lieberman previously served as foreign minister under a Netanyahu government but has since become a strong critic.

Netanyahu’s Likud alliance with far-right and ultra-Orthodox parties performed better than expected but still fell short of a majority. It holds 53 of the Knesset’s 120 seats.

Eisenkot’s centre-right Yashar party and its prospective coalition partners, including Lieberman, hold 48 seats. They could also seek support from parties representing Israel’s Arab minority, which hold 19 seats and are aligned with Eisenkot in their strong opposition to Netanyahu.

Talks are continuing between Eisenkot, some of his “change bloc” partners and Likud on a possible unity government.

The left-wing Democrats party, which won eight seats, said it was suspending talks with Eisenkot after Yashar’s discussions with Likud about a possible unity government. Democrats leader Yair Golan said he prefers a government without Netanyahu but with Arab parties.