Quenya (ˈkwwɛɲja) is a constructed language, one of those devised by J. R. R. Tolkien for the Elves in his Middle-earth fiction.
Tolkien began devising the language around 1910, and restructured its grammar several times until it reached its final state. The vocabulary remained relatively stable throughout the creation process. He successively changed the language's name from Elfin and Qenya to the eventual Quenya. Finnish had been a major source of inspiration, but Tolkien was also fluent in Latin and Old English, and was familiar with Greek, Welsh (the latter being the primary inspiration for Sindarin, Tolkien's other major Elvish language), and other ancient Germanic languages, particularly Gothic, during his development of Quenya.
A notable feature of Tolkien's Elvish languages was his development of a complex internal history of characters to speak those tongues in their own fictional universe. He felt that his languages changed and developed over time, as with the historical languages which he studied professionally—not in a vacuum, but as a result of the migrations and interactions of the peoples who spoke them.
Within Tolkien's legendarium, Quenya is one of the many Elvish languages spoken by the immortal Elves, called Quendi ('speakers') in Quenya. Quenya translates as simply "language" or, in contrast to other tongues that the Elves met later in their long history, "elf-language". After the Elves divided, Quenya originated as the speech of two clans of "High Elves" or Eldar, the Noldor and the Vanyar, who left Middle-earth to live in Eldamar ("Elvenhome"), in Valinor, the land of the immortal and God-like Valar. Of these two groups of Elves, most of the Noldor returned to Middle-earth where they met the Sindarin-speaking Grey-elves. The Noldor eventually adopted Sindarin and used Quenya primarily as a ritual or poetic language, whereas the Vanyar who stayed behind in Eldamar retained the use of Quenya.