PUERTO ESCONDIDO, Mexico — Hurricane Erick made landfall in Mexico’s southern state of Oaxaca early Thursday, the National Hurricane Center in Miami said.

The hurricane’s center was located about 20 miles east of Punta Maldonado. Its maximum sustained winds were clocked at 125 mph. It was moving northwest at 9 mph, the hurricane center said.

The storm was downgraded slightly before making landfall, from a Category 4 to a Category 3. While slightly reduced in power, Erick is still considered a major hurricane as a Category 3, which can carry winds of up to 129 mph.

The storm threaded the needle between the resorts of Acapulco and Puerto Escondido, tearing into a sparsely populated stretch of coastline near the border of Oaxaca and Guerrero states. Agricultural fields blanket the low-lying coastal area between small fishing villages.

Erick is expected to rapidly weaken as it crashes into the coastal mountains of southern Mexico, and the system is likely to dissipate late Thursday or early Friday, the hurricane center said.

The storm threatened to unleash destructive winds near where the eye crashes ashore, flash floods and a dangerous storm surge, forecasters said.

At first light Thursday, Acapulco awoke under ominous dark clouds, but without a drop of rain and small waves lapping at its central beach.

However, the storm was forecast to move northwest just inland up the coast through midday, bringing heavy rain to the resort and the mountains that tower dramatically above it.

Still, it appeared Acapulco had dodged the worst at least in terms of Erick’s strong winds.

Late Wednesday, Erick’s projected path had crept south, closer to the resort city of Puerto Escondido in Oaxaca state with Acapulco northwest up the coast.

President Claudia Sheinbaum said in a video message Wednesday night that all activities in the region were suspended and she urged people to stay in their homes or to move to shelters if they lived in low-lying areas.

Waves were crashing onto the esplanade in Puerto Escondido by nightfall, swamping wooden fishing boats that had been pulled up there for safety. The beach disappeared under pounding waves, and the rising tide had reached the interiors of some waterfront restaurants.

Acapulco residents had braced for Erick’s arrival with more preparation and trepidation because of the memory of the devastation wrought by Hurricane Otis two years earlier.

The city of nearly 1 million was devastated in October 2023 by Otis, a Category 5 hurricane that rapidly intensified and caught many unprepared. At least 52 people died, and Otis damaged almost all of the hotels.

Guerrero state Gov. Evelyn Salgado had said in a post on X that all movement in Acapulco and other beach communities was to be suspended at 8 p.m. Wednesday. Schools across the state were to remain closed for a second day Thursday.

On Wednesday, Workers nailed sheets of plywood over shop windows and stacked sandbags outside doorways. Cars lined up to fill their tanks and shoppers made last-minute purchases before rushing home.

Verónica Gómez struggled through the streets of Acapulco with a large jug of water. “We’re all afraid because we think the same thing could happen,” said the 40-year-old employee of a shipping company.

But she said she and others learned a lot from Otis. “Now it’s not going to catch us by surprise,” she said, holding out a bag of canned food as evidence.

In Acapulco on Wednesday, there was a strong presence of National Guard and police in the streets, but most visible were trucks from the national power company. Crews worked to clear drainage canals and brush. Rains of up to 16 inches could fall across Oaxaca and Guerrero, with possible flooding and mudslides in steep areas.