 Gerald spent the remainder of his life in academic study, most probably in Lincoln, producing works of devotional instruction and politics, and revising the works on Ireland and Wales he had written earlier in his life.He spent two years (1204–6) in Ireland with his relatives and made a fourth visit to Rome, purely as a pilgrimage, in 1206.The controversy over St David's soured his relationship with the crown.