Comastri was born in Sorano, in the province of Grosseto to Fernando and Beneria and at the Pontifical Roman Seminary. On 11 March 1967, he was ordained to the priesthood by Bishop Luigi Boccadoro. Comastri served as vice-rector of the minor seminary of Pitigliano and, at the same time, did pastoral work in the parish of San Quirico'. He was later assigned to the Roman Curia as an official of the Congregation for Bishops. He served as spiritual director of the Pontifical Minor Roman Seminary and a chaplain at Roman jails before returning to Pitigliano, where he became rector of the seminary in 1971. In 1979, he was named pastor of the parish of San Stefano Protomartire in Porto Santo Stefano. He was also a member of the diocesan college of consultors, and served as episcopal delegate for the seminarians residing outside of the diocese and professor of religion at the Professional Institute for Maritime Activities in Porto Santo Stefano. On 25 July 1990, Comastri was appointed Bishop of Massa Marittima-Piombino by Pope John Paul II. He received his episcopal consecration on 12 September from CardinalBernardin Gantin, with Archbishop Gaetano Bonicelli and Bishop Eugenio Binini serving as co-consecrators, in the parish church San Stefano Protomartire. He resigned as bishop for health reasons on 3 March 1994. Following his recovery, he was named president of the National Italian Committee for the Jubilee of the Year 2000 and placed in charge of the National Center for Vocations of the Italian Episcopal Conference. Comastri was named Territorial Prelate of the Territorial Prelature of Loreto, with the personal title of archbishop, on 9 November 1996. On 5 February 2005, he was appointed President of the Fabric of Saint Peter, Vicar General of His Holiness for the State of Vatican City, and Coadjutor Archpriest of St. Peter's Basilica. He preached the Lenten spiritual exercises for Pope John Paul II and the Roman Curia in 2003 and the meditations for the Stations of the Cross in the Colosseum on Good Friday 2006. Upon the retirement of Cardinal Francesco Marchisano on 31 October 2006, Comastri succeeded him as Archpriest of St. Peter's Basilica. Pope Benedict XVI created him Cardinal in the consistory of 24 November 2007, assigned to the titular church of San Salvatore in Lauro with the rank of cardinal-deacon. In addition to his main duties, he also serves as vice-president of the Pontifical Academy of the Immacolata and he has been a member of the Congregation for the Causes of Saints since 2005. Comastri participated in the papal conclave that elected Pope Francis. After ten years as a cardinal-deacon, he was raised to the rank of cardinal-priest on 19 May 2018. In 2020 speaking on Stanze Vaticana, Cardinal Comastri spoke about dialogue with Islam, after Turkey's decision to restore Hagia Sophia to a mosque, saying that “no mosque was ever turned into a Catholic Church.” Comastri said COVID-19 “does not come from God,” and that powerful states are “organizing world wars, including bacteriological wars; is not excluded that COVID-19 came out of one of these laboratories.” Comastri was referencing claims that COVID-19 may have escaped the Wuhan Institute of Virology, which has been studying viruses in bats.