An earthquake of magnitude 4.0 and depth of 8.10 kilometers occurred 6.27 miles from Fremont, CA in Alameda County at 02:41 AM.