An earthquake of magnitude 2.6 on the Richter scale struck Sonipat, Haryana on Friday, the National Centre of Seismology (NCS) reported.