The Italian libretto was written by Francesco Maria Piave based on the play `` Le roi s ` amuse '' by Victor Hugo .
Francesco Maria Piave wrote the libretto ( words and story ) . Piave based his libretto on Victor Hugo 's play `` Le Roi s ` amuse '' .