It's allegorical.

The whole story is about ridding the world of the Ring (sin), Sauron (Satan), and the return of Aragon to Gondor (Jesus).