Guardasoni had asked Antonio Salieri to write the opera, but Salieri was too busy, so he then asked Mozart. Mozart was glad to accept, because he was paid twice as much as when he wrote an opera for Vienna.