In later years, one of his colleagues was Francisco Goya, who married his sister, Josefa Bayeu. He served as court painter to King Charles III of Spain. He was named a professor of the Royal Academy of Fine Arts of San Fernando in 1765 and director in 1788. He painted in the Charterhouse of Aula Dei in Zaragoza. In 1767 he was named court painter for Charles III, king of Spain. He was involved in the decoration of various Royal palaces near Madrid. He helped provide designs for tapestries. He also painted for the College of San Ildefonso, the Royal Monastery of the Incarnation (Madrid), the Basilica of our Lady del Pilar in Zaragoza, and the cloister of the Cathedral of Toledo.