The Himalayan mountain ranges in India served as a barrier and protected the country from many foreign invasions.