Idomeneo, re di Creta ossia Ilia e Idamante (Italian for Idomeneo, King of Crete, or, Ilia and Idamante; usually referred to simply as Idomeneo, K. 366) is an Italian language opera by Wolfgang Amadeus Mozart. The libretto was adapted by Giambattista Varesco from a French text by Antoine Danchet, which had been set to music by André Campra as Idoménée in 1712. Mozart and Varesco were commissioned in 1780 by Karl Theodor, Elector of Bavaria for a court carnival. He probably chose the subject, though it might have been Mozart.
The libretto clearly draws its inspiration from Metastasio and its overall layout, not to mention the type of character development which Metastasio had developed and mostly from the highly poetic language used in the various numbers and the secco and stromentato recitatives. The style of the choruses, marches, and ballets was very French, and the shipwreck scene towards the end of act I is almost identical to the structure and dramatic working-out of a similar scene in Gluck's Iphigénie en Tauride. The sacrifice and oracle scenes are similar to Gluck's Iphigénie en Aulide and Alceste.