The agreement was reached late on Sunday following four hours of negotiations between President Lenin Moreno and Jaime Vargas, the head of the indigenous umbrella group CONAIE.
Under the deal, the Quito government revoked an order that had removed fuel subsidies and led to a sharp hike in fuel prices, the two sides announced in a joint statement.
The austerity measures were introduced 12 days ago to secure a $4.2-billion loan from the International Monetary Fund, triggering angry protests that left seven people dead.
“With this agreement, the mobilizations… across Ecuador are terminated and we commit ourselves to restoring peace in the country,” the statement further said.
In return, leaders of indigenous people agreed to call on their followers to end protests and street blockades that had forced Moreno to relocate the government to the coastal city of Guayaquil.
Ecuador government, protesters agree to talk amid curfewThe UN and the Catholic Church announce an agreement between the Ecuadorian government and indigenous people to hold talks to end the crisis engulfing the country over fuel subsidy cuts.
The president had also ordered the capital and surrounding areas to be placed under curfew and military control.
Prior to the talks, which were mediated by the United Nations and the Catholic Church, violent clashes were underway between police and the protesters in Quito.
The protests were, however, replaced with celebrations when the deal was announced.
Ecuador’s indigenous groups account for a quarter of the country’s 17.3-million population.
Indigenous leaders mobilized thousands of protesters against the government’s IMF-backed austerity plan, which the government argued would save the state 1.3 billion dollars a year.
Responding to their leaders, people from disadvantaged communities from across the Amazon and the Andes had traveled Quito to take part in the protests.
In the Amazon, the protesters seized three oil fields earlier this week, promoting the Energy Ministry to suspend more than two-thirds of its distribution of crude.
Authorities said 1,349 people had been injured and 1,152 detained in the demonstrations.