Yair Lapid, leader of the centrist Yesh Atid party, announced an eight-faction coalition had been formed.
Under a rotation arrangement, the head of the right-wing Yamina party, Naftali Bennett, would serve as prime minister first before handing over to Mr Lapid.
There still needs to be a parliamentary vote before the government is sworn in.
In a statement, Mr Lapid said he had informed President Reuven Rivlin of the agreement, adding: “I pledge that this government will work in the service of all Israeli citizens, those who voted for it and those who did not.
“It will respect its opponents and do everything in its power to unite and connect all parts of Israeli society.”
Mr Abbas told reporters: “The decision was hard and there were several disputes but it was important to reach agreements.” He said that there were “many things in this agreement for the benefit of Arab society”.
In his note to the president, Mr Lapid said he would head the government alongside Mr Bennett, who he would replace as prime minister on 27 August 2023.
Mr Rivlin has called on parliament to convene as soon as possible to hold the confidence vote.
If the coalition fails to win the support of a majority in the 120-seat Knesset, there is a risk of the country having to go to elections for the fifth time in two years.
The coalition members span the full spectrum of Israeli politics. The parties have little in common politically apart from their plan to replace Mr Netanyahu.
- Yesh Atid (centrist) – led by Yair Lapid (17 seats)
- Kahol Lavan (Blue and White) (centrist) – led by Benny Gantz (eight)
- Israel Beiteinu (centre-right to right-wing nationalist) – led by Avigdor Lieberman (seven)
- Labor (social-democratic) – led by Merav Michaeli (seven)
- Yamina (right-wing) – led by Naftali Bennett (seven)
- New Hope (centre-right to right-wing)- led by Gideon Sa’ar (six)
- Meretz (left-wing, social-democratic) – led by Nitzan Horowitz (six)
- Raam (Arab Islamic) – led by Mansour Abbas (four)
All eight factions were needed to pass the 61 majority figure.
Wednesday’s marathon talks took place in a hotel near Tel Aviv, with a large number of issues – from legalising cannabis to fines for illegal construction to the rotation of judicial selection committee posts – all on the agenda.
Israeli media suggested that not all the elements were finalised, and this could still create doubts over whether the coalition will win its confidence vote.
Mr Netanyahu’s right-wing Likud party won the most seats in March’s inconclusive poll, but he was unable to form a governing coalition after being given the mandate.
Mr Netanyahu had called the proposed new government the “fraud of the century”, saying it endangered the state and people of Israel.
The BBC’s Middle East editor, Jeremy Bowen, says that Mr Netanyahu’s defeat was sealed not by left-wing opponents but by fellow right-wingers he had made into enemies by his ruthless, high-handed tactics.
No-one should expect big, new initiatives from the coalition, our correspondent says, adding that just surviving the onslaught Mr Netanyahu is undoubtedly planning will be a full-time job.
No rational political enemy of Benjamin Netanyahu can underestimate his tenacity, ruthlessness and absolute determination to hold on to office. Until a new government with a new prime minister is sworn in, he will do all he can to stop it.
If he found himself leader of the opposition, he would do all he could to destabilise a coalition with a wafer-thin majority that would be trying to span the entire Israeli spectrum, from the nationalist right to the liberal left.
All that unites them is their desire to remove him from office.
Mr Netanyahu has already called the proposed new government the “fraud of the century”. He says it endangers the state of Israel, the people of Israel, and the soldiers of Israel. However loudly he complains, the likelihood is that he is leaving office. In the end his defeat was sealed not by left-wing opponents but by fellow right-wingers he has made into enemies by his ruthless, high-handed tactics.
No-one should expect big, new initiatives from a new government. Just surviving the onslaught Mr Netanyahu is undoubtedly planning will be a full-time job. His opponents will be hoping that his fall will continue in the Jerusalem courthouse where he is already on trial on serious corruption charges.