"I've heard and read several times that Tolkien wrote when there was a respite in combat during his tour of duty in WWI. Maybe some of his characters were inspired by fellow soldiers, maybe the thought of them comforted him in battle. We do know for certain that the war impacted him heavily and that his writing is predominantly about death, and not necessarily from a bad view, it's a solemn but beautiful element in his writings."