Now that both those objectives have, in his opinion, been achieved, it was the right time for him to step down, he went on.
The letter also included effusive praise for Netanyahu's leadership and the government's response to the October 7 attacks, which he called "the darkest day the Jewish people have known since Israel was established".
However, Dermer is expected to remain active in politics and is reportedly being lined up for a role as the prime minister's special envoy.
The Times of Israel reports that expanding the Abraham Accords, a process in which he was heavily involved as a minister, will be part of his remit.
One source reportedly compared his likely role to that of Jared Kushner within the Trump administration - holding no formal position but being involved as a negotiator on key issues.
High-profile politicians across the aisle have praised Dermer following his announcement.
Defence Minister Israel Katz said the now ex-minister had worked with "dedication and deep responsibility", while Finance Minister Bezalel Smotrich said: "Ron my friend, thank you for our shared work for the future of the State of Israel."
And Opposition Leader Yair Lapid added: "I have had, and still have, many differences of opinion with Ron Dermer, but I never doubted that he is a Zionist and a patriot and wants the best for the state."