The nation's leader Daniel Noboa came out without injury after his presidential motorcade was attacked by stone-throwing demonstrators and what officials described as potential gunfire.
The president was inaugurating a water purification facility in central Ecuador when his convoy was set upon by a large group demonstrating against rising fuel prices.
About 500 people appeared and were hurling rocks at him, and there are clearly bullet marks on the president's car
commented the country's environment minister.
Authorities reported that five people were arrested and would face court proceedings on terrorism accusations – an crime carrying a maximum punishment of three decades in prison.
Recorded material made public by the administration depicts demonstrators standing in the road, covered in flags, rushing to gather sizeable rocks and building blocks.
When the presidential SUV passed, objects slammed into the exterior and shattered glass.
Someone could be audible yelling: "Duck! Heads down!" as the car accelerated from the scene.
Officials said they were continuing to examine whether certain of the damage on Noboa's protected vehicle were caused by bullet impacts.
The alleged attack occurred amid days of progressively aggressive demonstrations triggered by a administration's move to increase fuel costs.
Demonstrators have initiated work stoppages, blocked roads and abducted 16 soldiers – who were eventually released unharmed.
Ecuador's biggest native group reported that a demonstrator had been fatally injured by armed forces during one of the rallies.
More than one hundred individuals, including demonstrators and law enforcement, are thought to have been injured in the unrest.
The president has declared a emergency measures across several provinces.
The presidential administration said on social media after the incident that "cowardly acts will not deter" the president.
The head of the regional organization commented that "these actions are an attack on democracy, stability, and the principle of peaceful coexistence that must dominate in our societies."
Noboa is trying to reduce diesel subsidies to save about $1bn in government spending, diverting much of the funds to safety initiatives.
The nation, once considered one of the region's most secure countries, has seen a significant increase in criminal activity in recent years.
Positioned between two neighboring countries, both the world's largest cocaine producers, Ecuador has transformed into a significant transportation center for narcotics.
Officials have alleged cartels of exacerbating the unrest, suggesting that criminal groups are exploiting the demonstrations to destabilize the nation.
Reports indicate that 70% of the global illegal drug market passes through the country, much of it destined for the US.
The trade has attracted global crime syndicates, including Mexican drug cartels, Italy's 'Ndrangheta, and Albanian criminal networks.
Their competition for control of smuggling corridors has transformed the nation into one of the region's most dangerous locations.
Noboa has called for a referendum to allow the presence of American military to the nation, overturning a 2009 ban on foreign bases.
Liam is a travel enthusiast and blogger with a passion for uncovering the best travel deals around the world.