 There he died, but the exact year of his death is not known.With Mara Branković's influence Ivan of Rila's relics were moved from Trnovo to the newly re-built Rila monastery.While residing in the Rila monastery in 1469 Kantakuzin wrote a biography of Saint John of Rila and a touching "Prayer to the Holy Virgin" imploring her aid in combating sin.