It happened 211 kilometres from the capital at around midnight local time.
A tsunami warning for the country has been cancelled.
Despite this the Government has put warnings for residents to remain inland and on high ground.
Photos show staff from Tonga's National Emergency Management Office delivering drinking water to those asked to move.
Both Samoa and American Samoa have released warnings also.