An earthquake of magnitude 4.2 and depth of 5.00 kilometers occurred 0.80 miles from Alamo, CA in Contra Costa County at 04:47 AM.