Its Italian libretto is by Francesco Buti, based on Sophocles' The Trachiniae and on the ninth book of Ovid's Metamorphoses.
The first performance took place on 7 February 1662 in the Salle des Machines of the Tuileries in Paris.
Cardinal Mazarin commissioned the opera to celebrate the June 1660 wedding of Louis XIV and Maria Theresa of Spain, but preparations for the staging were on a grand scale and caused a twenty-month delay, irritating the composer.
Worse for him, eighteen ballet entrées and intermèdes by Isaac de Benserade with music Jean-Baptiste Lully were inserted, mostly at the ends of Cavalli's acts, to cater to French taste.
These were not merely diversions but also served to further the plot,[1] and in the event they met with greater approval from the audience than Ercole amante itself, helping boost Lully's position at the French court.