Which foreign religion ruled on India?