There is so much incorrect in this thread that it makes a Lord of the Rings fanatic

Professor Tolkien is the father of modern fantasy. The world of Middle Earth was originally created as a setting for the languages he had created. Tolkien was a philologist. He loved the spoken and written word.
The Hobbit as originally written as a children's story, and was published in 1937. When asked to write a sequel to the successful book he began to work on the Lord of the Rings. The book began to get completely away from him. It was written during the period of 1937-1949. When he finished it in 1949 it still took 5 years before the Fellowship of the Ring was published. There were many disagreements between Tolkien and his publisher that caused this long period before being published. The Lord of the Rings was released in three volumes during an approximate year long period between July 1954 and October 1955.
The Silmarillion, not published until after Tolkien's death, was actually being written during World War I. Tolkien would hand write small pieces that would later come together as the stories of the earlier ages of Middle Earth.
It has been stated by Professor Tolkien that the Lord of the Rings is absolutely not any form of allegory. He detested allegory in all forms.
~Rathmaker~