The Monroe Doctrine was established for all of these reasons except:

To keep Europe from colonizing in the Americas
For American defense
So the United States colonize the Western Hemisphere
To keep Europe from interfering in the Western Hemisphere