An earthquake of magnitude 6.5 struck the Tonga Islands on Monday, the German Research Center for Geosciences (GFZ) said.
The quake was at a depth of 111 km (68.97 miles), GFZ added.
The US National Tsunami Warning Center said there was no tsunami threat from the quake, based on available data.
The Tonga Meteorological Services, Government of Tonga earlier advised people to "evacuate immediately inland to high ground or to the 3rd level of a steel or concrete building until the threat has passed". Mariners were also advised to move to deep ocean away from reefs.
It said a "dangerous tsunami" could hit the region "in minutes".
However, in an updated message the agency said the threat has since passed.
"Be aware that although the main tsunami threat has passed, small unsual waves, currents and abnormal tides may still affect some beaches and harbours for hours," it warned.
Reuters with Newshub