It is easy to see when you read Tolkien how the political arena of his time entered the story, along with his personal views and history, combined with his knowledge of myths and folklore.
Lord of the Rings is truly fascinating as a fantasy novel, but it also has a ring of truth. This is true of most fantasies. Furthermore, most fantasies have hidden magic, for example, if J.R.R. Tolkien was an advanced Freemason, then it begs the question of he was coding a deeper message, and even more than one, in this great lore.