From September 1513 to 1516, Leonardo spent much of his time living in the Belvedere in the Vatican in Rome, where Raphael and Michelangelo were both active at the time. In October 1515, Francis I of France recaptured Milan. On December 19, Leonardo was present at the meeting of Francis I and Pope Leo X, which took place in Bologna. It was for Francis that Leonardo was commissioned to make a mechanical lion which could walk forward, then open its chest to reveal a cluster of lilies. In 1516, he entered François' service, being given the use of the manor house Clos Lucé near the king's residence at the royal Chateau Amboise. It was here that he spent the last three years of his life, accompanied by his friend and apprentice, Count Francesco Melzi, supported by a pension totalling 10,000 scudi.
Leonardo died at Clos Lucé, on May 2, 1519. Francis I had become a close friend. Vasari records that the King held Leonardo's head in his arms as he died, although this story, beloved by the French and portrayed in romantic paintings by Ingres, Ménageot and other French artists, as well as by Angelica Kauffmann, may be legend rather than fact. Vasari also tells us that in his last days, Leonardo sent for a priest to make his confession and to receive the Holy Sacrament. In accordance to his will, sixty beggars followed his casket. He was buried in the Chapel of Saint-Hubert in the castle of Amboise. Melzi was the principal heir and executor, receiving as well as money, Leonardo's paintings, tools, library and personal effects. Leonardo also remembered his other long-time pupil and companion, Salai and his servant Battista di Vilussis, who each received half of Leonardo's vineyards, his brothers who received land, and his serving woman who received a black cloak of good stuff with a fur edge.