The temblor was recorded just after 10:30 a.m., the USGS said.
Its epicenter was located near the northern part of Death Valley, according to the USGS.
WATCH: Are we prepared for an earthquake during the pandemic? Dr. Lucy Jones answers your questions
Meanwhile, the USGS reported a 3.0-magnitude earthquake struck about 1.8 miles from Fontana around 10:50 a.m.
There were no immediate reports of injuries or major damage following either quake.