The President of Ecuador has ordered that the capital Quito and surrounding areas be subject to a curfew to limit violent protests.
"We will restore order throughout Ecuador," Lenín Moreno said in a televised address.
Some parts of Quito are plunged into chaos after more than a week of clashes between protesters and riot police.
Moreno said protesters, led by indigenous groups, had agreed to hold direct talks for the first time.
They claim the return of fuel subsidies, suppressed by the government as part of a package of austerity measures. Some called for the resignation of the president, who declared a national emergency of two months.
Moreno said the curfew will come into effect on Saturday at 15:00 (20:00 GMT).
"I ordered the joint command of the armed forces to immediately take the necessary measures to restore order throughout the country," he said.
The armed forces said that travel would be restricted throughout the country for 24 hours.
Moreno also thanked the indigenous leaders for agreeing to hold direct talks. The members of the CONAIE Indigenous Coordination Group had previously rejected the calls for talks but agreed that they should be broadcast and not held in camera.
It is not clear if the protesters will respect the curfew.
Earlier Saturday, protesters attacked a TV station and press office in Quito. The Teleamazonas channel broadcast images of its broken windows and a burning vehicle. The newspaper El Comercio tweeted that a "group of strangers" had attacked his offices. No injuries were reported in either case.
Elsewhere, masked men threw gasoline bombs at a government building in Quito, housing the Office of the Comptroller General, and then invaded it.
On Twitter, Interior Minister Maria Paula Romo said the area around the building was being evacuated so fire crews could extinguish the flames. She added that 30 people had been arrested in front of the building.
What is the background?
The protests began after the government announced the end of fuel subsidies as part of the public spending cuts agreed with the International Monetary Fund (IMF) in return for a loan. The agreement reached in March will allow Ecuador to borrow $ 4.2 billion (£ 3.4 billion).
Moreno said fuel subsidies, introduced in the 1970s at an annual cost of $ 1.3 billion, were no longer affordable. Their elimination is part of its plan to consolidate Ecuador's declining economy and ease the burden of its debt.
Gas prices soared and thousands of people took to the streets. In recent days, they have erected barricades, stormed buildings and clashed with security forces, who tried to disperse the crowd with tear gas.
The protesters have also entered some oil fields, affecting the production of the Andean nation, member of the Organization of Petroleum Exporting Countries.
Indigenous-led demonstrations have overthrown three presidents in recent decades. Since the current unrest began, protesters have taken dozens of officers hostage in various parts of the country.