Tremors were felt in the twin cities of Islamabad, Rawalpindi and parts of Khyber Pakhtunkhwa on Wednesday.
The earthquake also struck Peshawar, Mardan, Kohat, Dir Bala, Chitral, Swat, Mingora and Malakand in KP on Wednesday night.
However, the magnitude and epicentre of the earthquake are not known for now.
Meanwhile, residents were forced to evacuate their homes out of fear as the ground shook violently.