Foreign invaders found it difficult to attack the Indian subcontinent because of the natural barriers.