Complex sentence: There he entered the Jesuit novitiate but had to leave due to ill health, he returned shortly to Spain and exercised his pastoral ministry in Viladrau and Girona, attracting notice by his efforts on behalf of the poor.
Split into simpler sentences: There he entered the Jesuit novitiate but had to leave due to ill health. He then returned to Spain and exercised his pastoral ministry in Viladrau and Girona, attracting notice by his efforts on behalf of the poor.