The U.S. Geological Survey says the Friday morning quake was centered about 48 miles north-northeast of Loreto, in the waters between the states of Baja California Sur and Sinaloa.
RELATED: Bay Area Earthquake Tracker
The USGS reports that it struck at a depth of 6 miles (10 kilometers).
The area is a desert coastline dotted with small towns and fishing villages popular with U.S. tourists who park their recreational vehicles at seaside campsites.
VIDEO: What to pack in your earthquake emergency kit
There were no immediate reports of injuries or damage.
Click here for more videos and stories about earthquakes.