In 1489 Josquin went to Rome and worked in the pope’s chapel. He stayed there at least until 1495, possibly later. There he wrote music for the chapel, including some motets. His music was becoming well known in some parts of northern Italy. It was a time of war in Italy. Several times the king of France invaded parts of Italy. Josquin seems to have written several pieces for the French royal court, including some funeral music on the death of King Louis XII in 1515.