Jewish settlers have agreed to quit a remote outpost that has become a flashpoint for clashes with Palestinians who also claim the land, officials say.
They'll quit Givat Eviatar, in the Israeli-occupied West Bank under an agreement with Israel's new government.
But it looks likely that at least some of its buildings will remain, locked and under military guard - an outcome sure to anger Palestinians who want it removed.
They've waged 'night disruption' protests over the past few weeks, burning flaming torches and tyres to send acrid smoke - and a message - into settler homes.
Palestinian officials said Israeli soldiers have shot dead five Palestinians during stone-throwing protests since the outpost was set up.
The settlement, near the Palestinian city of Nablus, grew rapidly. It was set up without permits in May and was soon home to more than 50 families.
Israel's military ordered it to be cleared - presenting an early challenge to Israel's new prime minister, Naftali Bennett, who heads a pro-settler party.
Settler leader Yossi Dagan said the families would leave voluntarily under the deal.
"It is not a simple plan. We made the decision with a heavy heart. On the one hand, with great sorrow on the things that are not easy in this plan, and on the other hand with understanding that it is good also for the benefit of the strengthening of settlement activity in the land of Israel and also for the benefit of the unity of the people, especially in this difficult period we are in today."
The residents of Beita, a nearby Palestinian village, claim ownership of the land. The deputy mayor says protests will continue until it's returned to them.
Most world powers deem the settlements, built on land Israel captured and occupied in a 1967 war, to be illegal.
Israel disputes this, citing historical ties to the land and its own security needs.