An earthquake of magnitude 1.7 and depth of 5.20 kilometers occurred 2.31 miles from Castro Valley, CA in Alameda County at 04:05 AM.