Both Quenya and Sindarin, the two primary Elvish languages created by J.R.R. Tolkien, are used in the "Lord of the Rings" trilogy. Quenya is utilized in formal situations and religious ceremonies, serving as the language of the High Elves. It boasts a complex grammar and a melodious sound, and is spoken by characters like Galadriel, Elrond, and Gandalf. Sindarin, by contrast, is the more commonly spoken Elvish language in Middle-earth, used in everyday conversation by the Grey Elves. Characters such as Legolas, Arwen, and the elves of Lothlórien speak Sindarin. Tolkien's constructed languages, including Quenya and Sindarin, are integral to his legendarium and play a crucial role in the world-building of his works.