Israel's Prime Minister Benjamin Netanyahu has agreed an 11th-hour deal to form a new coalition government.
The agreement, seven weeks after his Likud party won the election, came just before a deadline for the formation of an administration.
Mr Netanyahu needed backing from the right-wing Bayit Yehudi party to give him the necessary 61 seats.
Mr Netanyahu, who first became PM in 1996, is now on course for his fourth term in office.
"I'm sure that no-one is surprised that these negotiations were lengthy," Mr Netanyahu told a news conference.
"Time is of the essence, not only because I'm leaving now to call the president and the chairman of the Knesset (parliament) to tell them that I've managed to form a government, but also because we'll need to form it by next week in order to give a strong and stable government."
Majority of one
The leader of Bayit Yehudi (Jewish Home), Naftali Bennett, had demanded the justice ministry in return for support from his eight MPs.
Bayit Yehudi supports the expansion of Jewish settlements in the West Bank
He opposes the establishment of a Palestinian state, enjoys the support of Israeli settler communities in the West Bank and has called for the annexation of parts of the occupied territory.
Bayit Yehudi's backing for settlement expansion could worsen Israel's relations with its ally Washington and with Europe, correspondents say.
Mr Netanyahu had already secured deals by late on Tuesday with three parties - the centrist Kulanu and two ultra-Orthodox parties, United Torah Judaism (UTJ) and Shas.
He now has a majority of just one in the 120-member Knesset and says he will try to enlarge the coalition.
Analysis: Kevin Connolly, BBC News, Jerusalem
In the 67 years of its history, Israel has never known any form of government but multi-party coalition - no-one has ever won an outright parliamentary majority. But rarely can the process have come right down to the wire quite like this.
Benjamin Netanyahu was granted a total of seven weeks to build a new coalition and as the clock ticked towards midnight he had 53 of the 61 seats he needed.
The last eight were in the hands of the Bayit Yehudi party led by Naftali Bennett - once a protege of Mr Netanyahu's and now increasingly a rival for leadership of the Israeli right.
But 61 seats is the bare minimum needed to govern in Israel and a coalition with those numbers won't feel stable. Worse for Mr Netanyahu, Mr Bennett demanded the powerful justice ministry as part of the price for helping the prime minister over the threshold.
For now Israel has its new coalition but it's a government conceived in ill-humour with the narrowest possible parliamentary majority.
Former ally and Foreign Minister Avigdor Lieberman said on Monday that his Yisrael Beitenu party would not join the coalition.
He had complained that the new coalition was not "nationalist" enough.
The coalition agreement came around two hours before the midnight deadline.
Without an accord, President Reuven Rivlin would have offered the chance of forming a government to another party - probably the centre-left opposition Zionist Union, which lost the election despite exit polls predicting a dead heat with Likud.
Latest Stories
-
The US helped successfully tackle Aids – now cuts put that at risk
16 minutes -
IFMA Ghana launches student chapter at Sunyani Technical University, inaugurates Department of Architecture and Real Estate
48 minutes -
Ghana leaves mark at inaugural International Cybersecurity Olympiad in Singapore
57 minutes -
Standard Chartered declares dividend at 55th Annual General Meeting
1 hour -
Prudential Bank, UnionPay International intensify customer engagement to boost card usage in China for traders
1 hour -
Ablakwa’s Diplomacy, Antwi’s Partisanship, and Kubi’s Statesmanship
2 hours -
Tottenham unveil Mohammed Kudus after completing move from West Ham
2 hours -
WAFCON 2024: Black Queens must be at their best against Mali – Kim Björkegren
3 hours -
Ablekuma North: Someday others will fly because you walked – Akosua Manu to Akua Afriyie amid EC rerun decision
3 hours -
Hungary, Switzerland and India explore mining partnership with Lands Ministry
3 hours -
Akufo-Addo/Bawumia government’s major gains in TVET transformation highlighted
3 hours -
IERPP to ORAL: Where’s the $18.4bn recovery account?
4 hours -
‘IMF is not God’ – Amanda Clinton
4 hours -
GIPC launches Investment Opportunities Mapping Project
5 hours -
TVET no longer the preserve of the less academically inclined – Education Minister
5 hours