A state of emergency has been declared for parts of Wellington as the weather bureau warned of waves up to nine metres.

A state of emergency has been declared for Wellington's Southern and Eastern wards, with some residents advised to stay elsewhere tonight.

Cook Strait ferry sailings have been cancelled as huge swells are forecast.

Forecasters described conditions as rare and potentially dangerous