Remaining in Bergamo until October 1821, the Composer busied himself with a variety of instrumental and choral pieces, but during that year, he had been in negotiation with Giovanni Paterni, intendant of the Teatro Argentina in Rome, and by 17 June had received a contract to compose another opera from a libretto being prepared by Merelli. It is unclear as to how this connection came about: whether it had been at Merelli's suggestion or whether, as william Ashbrook speculates, it had been Mayr who had initially been approached by Paterni to write the opera but who, due to advancing age, had recommended his prize pupil. This new opera seria became Donizetti's Zoraida di Granata, his ninth work. The libretto had been started by August and, between then and 1 October when Donizetti was provided with a letter of introduction from Mayr to Jacopo Ferretti, the Roman poet and librettist who was to later feature in the young composer's career, much of the music had been composed.