Demofoonte is an opera in three acts by the Czech composer Josef Mysliveček. It was the composer's second setting of this popular libretto by Metastasio first produced in 1733 (it was common in the second half of the eighteenth century for composers to set Metastasian texts dozens of times over). It was typical for subsequent setting of Metastasian dramas to incorporate significant alterations, and this setting retains the augmentation of the role of Timante that is found in the composer's first setting of this text. All of Mysliveček's operas are of the serious type in Italian referred to as opera seria.
The opera was first performed at the Teatro San Carlo in Naples on 20 January 1775, the birthday of king Charles III of Spain, the former ruler of the Kingdom of Naples whose birthday and nameday were still celebrated with operatic productions under the rule of his son Ferdinand. It was very successful at its premiere, to the point that the prima donna for the production, Antonia Bernasconi, specially brought arias from it with her to her next engagement in London.
The Thracian king Demofoonte asks the oracle of Apollo how long the practice of the annual sacrifice of a virgin will continue. The answer is puzzling: "as long as the innocent usurper sits on the throne". The nobleman Matusio tries to protect his daughter Dircea from being sacrificed. He and Demofoonte are unaware that Dircea is secretly married to Timante, the son of Demofoonte and the heir to the throne. Demofoonte wants Timante to marry Creusa, a princess of Phrygia. Timante's younger brother Cherinto is accompanying her to the kingdom of Thrace, however he falls in love with her. Meeting Creusa, Timante admits that he cannot marry her, but does not explain why.
Dircea has been caught while trying to flee the country and imprisoned, and Demofoonte orders the immediate sacrifice of Dircea. Timante tries to release her but with no success. He is also imprisoned. Creusa asks Demofoonte for mercy. The king releases Timante and Dircea, and Timante decides to give up the throne in favour of Cherinto.