An earthquake shook southern California, measuring 5.8 magnitude, according to the U.S. Geological Survey.

The earthquake caused buildings to sway in San Diego and it rocked the California-Mexico border this morning. It was felt over a wide section of the Southwest, including San Diego, Phoenix and Tijuana.

The sizable temblor occurred at 10:48 a.m. about 23 miles south of Calexico in Imperial County and 20 miles from Mexicali.

Two other quakes were measured according to USGS data -- both 4.0-magnitude in the same region.

According to the U.S. Geological Service, residents across Imperial County, San Diego County, Orange County and even Los Angeles County reported feeling the temblor.

The City Hall building in San Diego shook for about 30 seconds non-stop, causing lights to sway and the building could be heard creaking, according to the local 6 News.