An earthquake is a series of vibrations on the earth's surface caused by the generation of elastic (seismic) waves due to sudden rupture within the earth during release of accumulated strain energy.
Faulting may be considered as an immediate cause of an earthquake. Due to constant movement of plates, deformation is caused which results to generations of strain energy.
Indian plate is moving in north-north-east direction and colliding with Eurasian plate along the Himalayas.