There were no immediate reports of casualties or damage relating to the quake.
“Preliminary reports of the quakes near Macas don’t show major damage,” Ecuador’s President Lenin Moreno tweeted, adding that the rattlers were felt “all over the country.”
The earthquake occurred at around 5:15 a.m. local time. It struck 71 miles southeast of Palora in the Morona Santiago province and at a depth of 82 miles, the U.S. Geological Survey said.
Videos on social media showed chandeliers shaking and residents pouring out on the streets.
There were two aftershocks of 6.06 and 6.6 magnitudes in the 30 minutes after the first quake, Peru’s official geophysics institute said.
This large quake came nearly three years after a 7.8 rattler shook near the Ecuadorean coast killing more than 700 people and destroying hundreds of homes.
The Associated Press contributed to this report.