Context : Ernani is an operatic dramma lirico in four acts by Giuseppe Verdi to an Italian libretto by Francesco Maria Piave, based on the play Hernani by Victor Hugo. 
Answer : Hernani
Which is the basis of Ernani?