What was the purpose of zoning laws

What was the purpose of zoning laws