Stravinsky and Benois each attributed the creation of the libretto to one another in the days following the ballet's successful premiere. The idea about a ballet based on a puppet was Stravinsky's, but the libretto was almost certainly the work of Benois. The subject was close to his heart, and he was, after all, an experienced librettist.