A 7.7 magnitude earthquake struck off the west coast of Canada.
It was followed by a 5.8 magnitude aftershock several minutes later and several other aftershocks were also reported.
The quake hit Queen Charlotte Islands after 8 pm local time, Saturday at a depth of about 3 miles (5 kilometes) and was centered 96 miles (155 kilometers) south of Masset, British Columbia.
The quake was felt across much of north and central British Columbia but there were no immediate reports of major damage.
The National Weather Service issued a tsunami warning for coastal areas of British Columbia, southern Alaska and Hawaii.
According to the U.S. Geological Survey, a 7.4 magnitude earthquake hit in the Pacific Ocean about 78 miles off the coast of El Salvador late Sunday night.
The earthquake struck 74 miles south of Usulutan, El Salvador, at a depth of 33 miles.
A tsunami warning was in effect for Costa Rica, Nicaragua, El Salvador, Honduras, Guatemala, Panama and Mexico.
But the Pacific Tsunami Warning Center said there is no tsunami threat to Hawaii.
There were no immediate reports of damage to coastal areas or to shipping.