Why was NATO formed?

Why was NATO formed?