Gotti was born Antonio Giovanni Benedetto Gotti in Genoa, then part of the Kingdom of Sardinia, the second of the five children of Filippo Gotti, a dock worker originally from Bergamo, and Caterina Schiappacassea. He was sent to study at the Jesuit academy in Genoa, after which he entered the novitiate of the Order of Discalced Carmelites in Loano in 1849. On 10 November 1850, he received the religious habit and the religious name of Girolamo Maria dell'Immacolata Concezione. After his religious profession as a member of the Order on 12 November 1851, he began his studies for the priesthood, which he completed in 1856, being ordained a priest on 20 December 1856. In the following decades Gotti was a professor of philosophy and theology in the local monastery. So able and versatile was he that he also taught mathematics at the local naval academy during this period. He was already regarded as a tireless student and scholar, as well as an ascetic who, despite the influence he was having, would always sleep on the floor. At the First Vatican Council in 1870, Gotti served as a peritus to the Prior General of the Discalced Carmelite Order. By 1881 he had become Prior General himself, a position he would retain until 1897. He became a counselor to several curial congregations in Rome during the 1880s and was also Apostolic Examiner of the Roman Clergy during this decade. His diplomatic ability caused him to be selected for various special missions to South America, which he fulfilled with success, especially in Brazil. In 1892 Gotti became TitularArchbishop of Petra and Internuncio to Brazil. At the consistory of 29 November 1895 he was elevated to cardinal by Pope Leo XIII, being assigned as his titular church the Church of Santa Maria della Scala, in the Trastevere neighborhood of Rome, which is attached to the General Motherhouse of the Order. Gotti became Prefect of the Congregation for Bishops in 1896, but was transferred to the Propaganda Fide - where most of his curial experience had been concentrated - in July 1902. His reputation for piety and learning being undiminished meant that, when the seemingly ageless Leo XIII finally seemed in declining health, Gotti was often mentioned as a likely successor, even though he was seen as a very different man from Pope Leo. Gotti was papabile at the 1903 papal conclave, when he was generally believed to be the most likely opponent of Pope Leo's Cardinal Secretary of StateMariano Rampolla, and some, noting opposition to Rampolla just before Pope Leo's death, had said Gotti was likely to win. Gotti was Rampolla's main challenger in the first four ballots. When it became clear Rampolla had too many opponents to be able to gain the necessary 42 votes for election, his supporters turned to Cardinal Giuseppe Sarto, and after seven ballots Sarto was elected as Pope Pius X. It is noteworthy that there has never been a Carmelite pope: indeed Gotti is the only Carmelite cardinal to have been a serious candidate for the papacy since the Order was founded in the 13th century. Under Pope Pius, Gotti continued in his role as Prefect of the Propaganda Fide until his death in 1916. Although he participated in the 1914 conclave, Gotti, at eighty years of age, was clearly far too old to have another chance of becoming pope and was not again considered papabile. Gotti died on 29 March 1916 as a result of anemia. His remains were buried in the chapel of the Discalced Carmelite Order in the Campo Verano Cemetery of Rome. On March 21, 1966, his remains were transferred to the Chapel of San Giovanni Battista in the Church of Santa Maria della Scala.