An earthquake and a spectacular thunderstorm have kept many awake in the lower North Island last night.
Lightning lit up the skies around Wellington and the subsequent thunder rumbled through the much of the night.
In Wellington nearly 20,000 homes were without power.
Transpower has just reconnected the properties spreading from the Hutt Valley, to Wainuiomata and Eastbourne.
Transpower's Rebecca Wilson says it was all down to the city's stormy weather.
"We had a fault in the Gracefield-Upper Hutt area this morning and we had lightning strikes on the transmission lines in the Gracefield area which has caused a brief outage."
Meanwhile, a 4.4 earthquake hit 5km north of Napier, at a depth of 12km, just before 3:40am, GeoNet says.
More than 350 people reported feeling the quake. Most felt it as a light shake but two said it was a strong jolt.
The Fire Service said no one had reported damage from either event.