Hamlet is a grand opera in five acts of 1868 by the French composer Ambroise Thomas, with a libretto by Michel Carré and Jules Barbier based on a French adaptation by Alexandre Dumas, père, and Paul Meurice of William Shakespeare's play "Hamlet".