The ancient Elvish language in J. R. R. Tolkien's legendarium is Quenya.
Quenya is a constructed language devised by Tolkien for the Elves of Middle-earth. Within the fictional history, it developed from Primitive Quendian and became the language associated especially with the High Elves, including the Noldor and Vanyar, who undertook the Great March to Valinor. In that sense, it is often presented as an old, prestigious, or “ancient” Elvish tongue.
Tolkien began developing Quenya around 1910 and repeatedly revised its grammar and history. Finnish was a major inspiration, while Latin, Greek, Welsh, Gothic, and Old English also influenced its design. The language has distinct internal varieties, including everyday Tarquesta and the more formal Parmaquesta used in ceremony, poetry, and lore.
Quenya is not the same as Sindarin. Sindarin became the everyday language of many Elves who remained in Middle-earth, while Quenya was often retained for formal, literary, or ritual use. Khuzdul is the language of the Dwarves, and Adûnaic is associated with Númenor.