An earthquake of magnitude 4.0 and depth of 3.80 kilometers occurred 11.65 miles from Harrison, MT in Madison County at 05:23 AM.