AMMAN, Jordan — The government of Jordan announced on Thursday that it would withdraw a divisive tax bill after nationwide protests rocked the country, leading to the resignation of the prime minister and his cabinet.

The newly appointed prime minister, Omar Razzaz, said in a statement that he had consulted members of both houses of Parliament, and that there was a consensus that the tax bill should be withdrawn.

“This is a law that impacts all Jordanians,” Mr. Razzaz said. “It will be withdrawn and re-examined through national dialogue.”

The tax proposal was the latest in a series of measures Jordan took after securing a $723 million, three-year line of credit from the International Monetary Fund in 2016. The changes aimed to lower the country’s public debt, which totals $35 billion, to advance economic overhauls and to enhance growth.