A libretto is the text used in, or intended for, an extended musical work such as an opera, operetta, masque, oratorio, cantata or musical. The term libretto is also sometimes used to refer to the text used in a musical work of smaller scope, such as a song cycle or a musical revue.