WELLINGTON, New Zealand (AP) — A powerful earthquake struck New Zealand’s South Island early Monday, shaking residents awake, causing damage to buildings and prompting emergency services to warn people along the coast to move to higher ground to avoid tsunami waves.

The magnitude-7.8 earthquake struck just after midnight in a mostly rural area close to the city of Christchurch, but appeared to be more strongly felt in Wellington, the capital, more than 200 kilometers (120 miles) to the north. Residents said the shaking went on for about three minutes, and was followed by a number of strong aftershocks.

The quake temporarily knocked out New Zealand’s emergency call number, 111, police reported. Near the epicenter, it opened up snaking fissures in roads and triggered landslides. In Wellington, it collapsed a ferry loading ramp, broke windows and caused items to fall from shelves. It also forced hundreds of tourists onto the streets as hotels were evacuated.

Authorities in Wellington were urging people who work in the center of the city to stay home on Monday. City officials said that some large buildings were showing signs of structural stress, and that the quake would likely have caused a mess in some buildings. The city’s suburban rail network was shut while crews checked tracks, bridges and tunnels.

At daybreak, several hours after the quake struck, there still were no reports of serious injuries in Wellington or Christchurch. Still, the quake brought back memories of the magnitude-6.3 earthquake that struck Christchurch in 2011, destroying much of the downtown area and killing 185 people. That quake was one of New Zealand’s worst disasters, causing an estimated $25 billion in damage.

New Zealand quake

A powerful earthquake struck New Zealand near the city of Christchurch early Monday,

Light fittings lie broken on the floor of an electrical shop, in Thorndon Quay, in Wellington, Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Glass and masonry litter the footpath in Wellington Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Part of a landslide along Kaikoura Road about two hours north of Christchurch, Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (AP Photo / Angela Morgan)

A large fissure runs along Kaikoura Road about two hours north of Christchurch Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (AP Photo / Joe Morgan)

A large fissure runs along Kaikoura Road about two hours north of Christchurch Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (AP Photo / Joe Morgan)

The truck loading ramp at the Interisland Ferry wharf lays dropped and broken, in Wellington Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Logs have toppled off their racks on the wharf at Centreport, Wellington, Monday, November 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Glass and masonry litter the footpath in Wellington Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

People evacuated from the Quest On the Terrace Hotel gather outside the hotel in Wellington after a 6.6 earthquake based around Cheviot in the South island shock the capital, New Zealand, Monday, Nov. 14, 2016. A powerful earthquake struck New Zealand near the city of Christchurch early Monday, with strong jolts causing some damage to buildings over 200 kilometers (120 miles) away in the capital, Wellington. (Ross Setford/SNPA via AP)

People evacuated from buildings along Dixon Street stand and sit on the street and the sidewalk in Wellington after a 6.6 earthquake based around Cheviot in the South island shock the capital, New Zealand, Monday, Nov. 14, 2016. A powerful earthquake struck New Zealand near the city of Christchurch early Monday, with strong jolts causing some damage to buildings over 200 kilometers (120 miles) away in the capital, Wellington. (Ross Setford/SNPA via AP)

A powerful earthquake struck New Zealand near the city of Christchurch early Monday,

Light fittings lie broken on the floor of an electrical shop, in Thorndon Quay, in Wellington, Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Glass and masonry litter the footpath in Wellington Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Part of a landslide along Kaikoura Road about two hours north of Christchurch, Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (AP Photo / Angela Morgan)

A large fissure runs along Kaikoura Road about two hours north of Christchurch Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (AP Photo / Joe Morgan)

A large fissure runs along Kaikoura Road about two hours north of Christchurch Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (AP Photo / Joe Morgan)

The truck loading ramp at the Interisland Ferry wharf lays dropped and broken, in Wellington Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Logs have toppled off their racks on the wharf at Centreport, Wellington, Monday, November 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

Glass and masonry litter the footpath in Wellington Monday, Nov. 14, 2016, after a major earthquake struck New Zealand's south Island early Monday. The powerful earthquake struck in a mostly rural area close to the city of Christchurch but appeared to be more strongly felt in the capital, Wellington, more than 200 Km (120 miles) away. (Ross Setford/SNPA via AP)

People evacuated from the Quest On the Terrace Hotel gather outside the hotel in Wellington after a 6.6 earthquake based around Cheviot in the South island shock the capital, New Zealand, Monday, Nov. 14, 2016. A powerful earthquake struck New Zealand near the city of Christchurch early Monday, with strong jolts causing some damage to buildings over 200 kilometers (120 miles) away in the capital, Wellington. (Ross Setford/SNPA via AP)

People evacuated from buildings along Dixon Street stand and sit on the street and the sidewalk in Wellington after a 6.6 earthquake based around Cheviot in the South island shock the capital, New Zealand, Monday, Nov. 14, 2016. A powerful earthquake struck New Zealand near the city of Christchurch early Monday, with strong jolts causing some damage to buildings over 200 kilometers (120 miles) away in the capital, Wellington. (Ross Setford/SNPA via AP)

Although Monday’s quake was stronger, its epicenter was much farther from any major urban areas. Location, depth and other factors beyond magnitude all contribute to how destructive an earthquake can be.

New Zealand’s Ministry of Civil Defence and Emergency Management reported that a tsunami wave struck at about 1:50 a.m. and warned residents living in low-lying areas anywhere along the country’s east coast to move to higher ground.

Information from the Pacific Tsunami Warning Center indicated that the tsunami waves could be highest around the South Island town of Kaikoura, at about 1.5 meters (5 feet). The Hawaii-based center said it did not expect the quake to generate a destructive Pacific-wide tsunami.

Within New Zealand, there was confusion about the tsunami threat.

The ministry initially sent out a message on Twitter saying there was no tsunami threat. But then it sent out another message — “situation has changed – tsunami is possible” — before reporting that a tsunami had hit. The ministry then said people on the coast near the epicenter could expect waves of between 3 and 5 meters (10 and 16 feet).

As the quake hit, Christchurch resident Hannah Gin had just sat down in her living room to watch a replay of the national rugby team’s weekend match against Italy when her house started shaking. Upstairs, her mother let out a scream.

Gin, a 24-year-old lifelong Christchurch resident, is accustomed to quakes, so she said she sat calmly and waited, figuring the rumbling would stop in a few seconds. Instead, she said by telephone, the shaking just went on and on — for at least three minutes, according to the clock on her phone.

The quake was far less violent than the one that struck Christchurch in 2011, Gin said, adding that there was no jarring up and down or side to side, just a long, rolling sensation. But it went on for much longer than the typical quakes that strike the area, she said. She was less concerned about running for cover than she was about vomiting from the motion sickness, she said with a chuckle.

“I could hear the sliding door sliding back and forth, and we’ve got washing hanging up and I could see the washing moving,” Gin said. “It just kept going and going.”

She said that her house, which was damaged in the 2011 quake, did not appear to have sustained any new damage from Monday’s quake. She also said she had heard from many of her friends who live in the city, and all were safe.

“As far as I know, everyone’s fine,” she said. “We’re all just really shaken.”

In Wellington, 214 kilometers (132 miles) north of the quake’s epicenter, power was knocked out in some places, and some windows were smashed and some chimneys collapsed.

The quake was centered 93 kilometers (57 miles) northeast of Christchurch, according to the U.S. Geological Survey.

The USGS initially estimated that the earthquake had a magnitude of 7.4 before revising it to 7.8. It said the quake struck at a depth of 23 kilometers (14 miles), after initially putting the depth at 10 kilometers (6 miles). Earthquakes tend to be more strongly felt on the surface when they’re shallow.

New Zealand sits on the “Ring of Fire,” an arc of seismic faults around the Pacific Ocean where earthquakes are common.