The epicentre of the earthquake was just 15 kilometers northeast of Islamabad in the Margalla hills at a depth of 26 kms, according to the United States Geological Survey (USGS).
The quake, with a moderate magnitude, hit at 1:59 am local time, USGS said.
The tremors were felt in Islamabad, Rawalpindi, Peshawar, Abbottabad and other mountainous regions including eastern Punjab and north-western Khyber Pakhtunkhwa province, Express Tribune reported.
The quake spread panic among people and they rushed out of their homes. However, no loss of life or property was reported.