An earthquake of magnitude 7.8 on the Richter scale rattled the coastal region of Alaska on Wednesday.