Netanyahu submitted his resignation as finance minister on August 7, 2005, shortly before the Israeli cabinet voted 17 to 5 to approve the first phase of the withdrawal from Gaza. He had said he would resign unless a referendum on the plan was held.

The disengagement plan, led by Prime Minister Ariel Sharon, removed all Israeli settlements and forces from the Gaza Strip and four settlements in the northern West Bank. Netanyahu had voted for the plan at earlier stages while seeking changes, and resigned as it came to be carried out.

His resignation ended a two-year term at the Finance Ministry marked by the 2003 economic reforms. Later in 2005 Sharon left the Likud to found Kadima, and in December 2005 Netanyahu was elected leader of the Likud again.

Sharon first announced the disengagement plan in a newspaper interview in December 2003, months after promising during the election campaign that he would not uproot settlements in Gaza. Netanyahu, who had kept his focus on the economy and accepted earlier diplomatic plans with a list of fourteen reservations, concluded that the withdrawal would strengthen Hamas and endanger Israel's security.