He then relocated to Rome, where in 1771 he won second prize in a painting competition organized by the City of Parma. Later that year, he returned to Zaragoza and painted parts of the cupolas of the Basilica of the Pillar (including Adoration of the Name of God), a cycle of frescoes in the monastic church of the Charterhouse of Aula Dei, and the frescoes of the Sobradiel Palace. He studied with Francisco Bayeu y Subías and his painting began to show signs of the delicate tonalities for which he became famous
Goya married Bayeu's sister Josefa (he nicknamed her "Pepa") on 25 July 1773. This marriage, and Francisco Bayeu's membership of the Royal Academy of Fine Art (from the year 1765) helped Goya to procure work as a painter of designs to be woven by Royal Tapestry Factory. There, over the course of five years, he designed some 42 patterns, many of which were used to decorate (and insulate) the bare stone walls of El Escorial and the Palacio Real del Pardo, the newly built residences of the Spanish monarchs near Madrid. This brought his artistic talents to the attention of the Spanish monarchs who later would give him access to the royal court. He also painted a canvas for the altar of the Church of San Francisco El Grande in Madrid, which led to his appointment as a member of the Royal Academy of Fine Art.