LOS ANGELES — A magnitude 4.0 earthquake struck off the coast of Manhattan Beach on Thursday afternoon, shaking buildings across West Los Angeles and rattling nerves in a region still on edge five days after a much stronger tremor hit the same stretch of coastline, the U.S. Geological Survey said.

The quake hit at 12:05 p.m. local time, about five miles west of Manhattan Beach and roughly 20 miles southwest of downtown Los Angeles, at a depth of about 7.5 miles, according to the USGS. Aftershocks of magnitudes 2.1 and 2.5 followed within minutes, and dozens of people reported feeling the shaking on the agency's "Did You Feel It?" tracker.

The National Weather Service said there was no threat of a tsunami from the quake, and the shaking was felt across West Los Angeles, including in downtown, where the tremor registered as light to minor shaking on monitors.

Thursday's quake was not the day's first tremor in the area. A small magnitude 1.8 quake struck near Manhattan Beach at about 4:30 a.m., hours before the larger afternoon jolt. Imperial County, east of San Diego, also felt a cluster of quakes shortly after the Manhattan Beach event, including a magnitude 3.6 about 17 miles northwest of Ocotillo, followed by magnitudes 2.6 and 3.0 in the same area.

The new shaking comes five days after a magnitude 5.0 earthquake struck almost the same spot off Manhattan Beach on Saturday morning, November 28, the strongest tremor near Los Angeles in more than a decade. That quake, which hit at about 9:30 a.m. local time, was followed by more than 140 aftershocks, including a magnitude 4.6 tremor just before midday on Saturday.

Saturday's quake shattered glass windows in Terminal 7 at Los Angeles International Airport, where air traffic controllers ordered a Delta flight to pull up moments before landing as a precaution. The famed Manhattan Beach Pier was closed as officials assessed it, and bottles tumbled from shelves in grocery and liquor stores across the South Bay. The Los Angeles Fire Department declared its earthquake mode complete by 10:40 a.m. that day, reporting no significant infrastructure damage or injuries within the city.

Seismologists say the cluster is a reminder that Southern California sits atop one of the most active fault networks in the United States. The magnitude 5.0 quake was the most powerful near the city and Los Angeles County since a magnitude 5.1 rattled Brea in 2014 and a magnitude 5.4 shook Chino Hills in 2008.

Caltech seismologist Lucy Jones has said aftershocks around magnitude 3 are likely to continue in the area for another week or two as the fault settles, while Dr. Clara Yoon, a seismologist, told reporters the weekend cluster was a normal, if unnerving, part of life on the Pacific-North American plate boundary. "Southern California is earthquake country. We live on a major plate boundary between the Pacific and North American plates," Yoon said, noting that many faults run beneath the Los Angeles basin.

Yoon also cautioned that seismologists cannot rule out a stronger jolt following the cluster, putting the chance of a larger earthquake at about 5 percent, or one in 20. "However, there is a small chance, about 5%, or one in 20 odds, that we could have a larger earthquake in the future, but that is not very likely," she said, adding that the weekend's magnitude 5.0 and 4.6 quakes were unusually close in size, a pattern that bears watching.

Thursday's magnitude 4.0 quake fits the pattern scientists have been describing since Saturday: a restless offshore fault zone producing a steady drumbeat of aftershocks, most of them small, a few strong enough to be felt across the basin. The state's ShakeAlert system, which sent phone alerts within seconds of Saturday's main shock with an estimate close to the final magnitude, remains the first warning most Angelenos will get if a bigger one follows.