The nation's leader Daniel Noboa came out without injury after his official convoy was attacked by rock-hurling protesters and what authorities described as potential shots.
Noboa was opening a water purification facility in central Ecuador when his convoy was attacked by a sizeable crowd demonstrating against increasing energy costs.
About five hundred individuals appeared and were throwing stones at him, and there are obviously bullet marks on the president's car
commented the country's environment minister.
Authorities confirmed that five people were detained and would face trial on terrorism accusations – an crime carrying a highest penalty of three decades in prison.
Recorded material released by the administration shows demonstrators positioned in the street, draped in flags, rushing to collect sizeable rocks and building blocks.
As the presidential SUV drove by, projectiles slammed into the paneling and broke glass.
Someone could be heard shouting: "Duck! Get down!" as the vehicle accelerated from the scene.
Authorities indicated they were still investigating whether some of the damage on the president's protected vehicle were caused by gunfire.
The alleged attack came amid several days of increasingly violent demonstrations sparked by a government decision to increase diesel prices.
Demonstrators have initiated work stoppages, obstructed highways and taken 16 soldiers – who were subsequently released without injury.
Ecuador's biggest native group reported that a protester had been killed by armed forces during one of the protests.
Over one hundred individuals, including protesters and law enforcement, are thought to have been hurt in the unrest.
Noboa has imposed a emergency measures across multiple regions.
The presidential administration stated on digital platforms following the attack that "such actions will not deter" the president.
The head of the Organization of American States commented that "such violent acts are an attack on democracy, peace, and the spirit of harmonious living that must dominate in our societies."
Noboa is trying to reduce diesel subsidies to conserve about $1bn in government spending, diverting a significant portion of the funds to security funding.
The nation, once considered one of the region's safest countries, has seen a dramatic surge in violence in recent years.
Positioned between two neighboring countries, two of the planet's biggest drug manufacturers, Ecuador has transformed into a major transportation center for narcotics.
Officials have alleged cartels of exacerbating the protests, suggesting that criminal groups are taking advantage of the protests to disrupt the country.
It is estimated that seventy percent of the world's illegal drug market passes through the country, much of it destined for the US.
The trade has drawn global crime syndicates, including Mexican drug cartels, Italy's 'Ndrangheta, and Albania's mafia.
Their competition for dominance of trafficking routes has transformed the nation into one of the area's most dangerous places.
Noboa has called for a referendum to allow the presence of US troops to the country, repealing a 2009 ban on international military installations.
A passionate golfer and journalist with over a decade of experience covering PGA tours and equipment innovations.