NEW Zealand has banned most foreigners from buying homes as it tries to tackle runaway housing prices.

Previously the housing market was open to investors worldwide.

However, the government has passed legislation that allows only New Zealand residents to buy homes.

Foreigners who already own homes there will not be affected.