An earthquake of magnitude 4.2 occurred in Ladakh at 11.04 pm Tuesday night, according to the National Centre for Seismology. No immediate casualty or damage was reported.