What was the main purpose of NATO?

The opposition to communism and the Soviet influence

**********